pwd

Scott Amspoker scott at bbxsda.UUCP
Fri Dec 22 10:02:56 AEST 1989


In article <4504 at helios.ee.lbl.gov> envbvs at epb2.lbl.gov (Brian V. Smith) writes:
>In article <265 at zircon.UUCP>, davidb at Pacer.UUCP (David Barts) writes:
>< 
>< As numerous responses have told me, the system does not maintain
>< an open file descriptor into the current working directory.  Rather,
>< pwd works its way back up the tree by finding the i number of .
>< and searching for the entry under .. whose i-number matches that
>< of dot.  Special trickery is needed to handle mount points.
>< 
>< /bin/pwd is setuid to root so it can handle unreadable directories
>< in the path.
>
>This is not true in Ultrix - pwd will fail if it encounters an 
>unreadable directory in the path. 

A quick glance at /bin/pwd shows this is also true for Xenix.

-- 
Scott Amspoker
Basis International, Albuquerque, NM
(505) 345-5232
unmvax.cs.unm.edu!bbx!bbxsda!scott



More information about the Comp.unix.wizards mailing list