gsf@ulysses.att.com (Glenn S. Fowler) (01/11/91)
on RISC/os rel. 4.51 I noticed the following pathname resolution bug
the bug makes "regular-file" equivalent to "regular-file/."
this bug does not appear in an earlier release 4.20
I don't have access to releases in between
$ df .
Filesystem Type kbytes use avail %use Mounted on
/dev/dsk/ipc0d0s6 ffs 563983 562818 1165 100% /usr
$ cat > foo
$ ls -li foo
30983 -rw-r--r-- 1 asr bdev 0 Jan 10 10:37 foo
$ ls -li foo/.
30983 -rw-r--r-- 1 asr bdev 0 Jan 10 10:37 foo/.
the trailing /. is ignored by pathname resolution
the bug showed up in directory tree traversal code that tests if a known,
readable directory is searchable
Glenn Fowler (201)-582-2195 AT&T Bell Laboratories, Murray Hill, NJ
uucp: {att,ucbvax}!ulysses!gsf internet: gsf@ulysses.att.comdsg@mbunix.mitre.org (Goldberg) (01/15/91)
> $ df . > Filesystem Type kbytes use avail %use Mounted on > /dev/dsk/ipc0d0s6 ffs 563983 562818 1165 100% /usr > $ cat > foo > $ ls -li foo > 30983 -rw-r--r-- 1 asr bdev 0 Jan 10 10:37 foo > $ ls -li foo/. > 30983 -rw-r--r-- 1 asr bdev 0 Jan 10 10:37 foo/. > the trailing /. is ignored by pathname resolution > the bug showed up in directory tree traversal code that tests if a known, > readable directory is searchable I can only repeat this with /bin/ls. /bsd43/bin/ls correctly flags foo/. as "not found". -- Dave Goldberg UNIX Systems Programmer/Administrator The Mitre Corporation MS B020 Bedford, MA 01730 617-271-2460 Domain: dsg@mbunix.mitre.org UUCP: {your neighborhood}!linus!mbunix!dsg
rr@mips.COM (Robert "Bob" Rodriguez) (01/16/91)
Uh....gee...gosh....oh shoot.....fixed in the next release...honest. -- Robert Rodriguez rr@mips.com Workstations forever!