[9515] in Athena Bugs
decmips 7.4G: afs/afs_gfsops.c: trashes trailing /'s
daemon@ATHENA.MIT.EDU (Calvin Clark)
Thu Jun 25 18:12:24 1992
Date: Thu, 25 Jun 92 18:12:11 -0400
From: Calvin Clark <ckclark@mit.edu>
To: bugs@Athena.MIT.EDU
Cc: bug-afs@Athena.MIT.EDU
Reply-To: ckclark@mit.edu
System name: podge
Type and version: KN01 7.4G
Display type: PMAX-MFB
What were you trying to do?
[Try this anywhere on NFS or AFS. This only happens on ULTRIX.]
% touch foo
% cat foo/
% cat foo/////
What's wrong:
It works.
What should have happened:
It should say something like:
foo/: Not a directory
The routine afs_namei() seems to trash all the trailing slashes in a
filename. This is not specific to AFS code; it is almost certainly done
the same way for all remote filesystems on ULTRIX. I can't prove that
because I just don't have access to the corresponding NFS code, though.
Please describe any relevant documentation references:
RTSL. /mit/afsdev/src/3.1b/src/afs/afs_gfsops.c: afs_namei()