Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!spool2.mu.edu!uwm.edu!bionet!agate!ucbvax!ulysses!ulysses.att.com!gsf From: gsf@ulysses.att.com (Glenn S. Fowler) Newsgroups: comp.sys.mips Subject: regular-file/. bug Keywords: pathname resolution Message-ID: <14170@ulysses.att.com> Date: 10 Jan 91 17:36:24 GMT Sender: netnews@ulysses.att.com Distribution: comp.sys.mips Organization: AT&T Bell Labs Lines: 20 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.com