Xref: utzoo comp.unix.wizards:19862 comp.sys.hp:3842 Path: utzoo!attcan!uunet!pilchuck!pacer!davidb From: davidb@Pacer.UUCP (David Barts) Newsgroups: comp.unix.wizards,comp.sys.hp Subject: pwd Message-ID: <265@zircon.UUCP> Date: 21 Dec 89 17:21:38 GMT Followup-To: poster Organization: Pacer Corp., Bothell, WA Lines: 12 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. -- David Barts Pacer Corporation davidb@pacer.uucp ...!fluke!pacer!davidb