Path: utzoo!attcan!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: /bin/pwd Message-ID: <1990Sep14.233801.25715@virtech.uucp> Date: 14 Sep 90 23:38:01 GMT References: <2488@idunno.Princeton.EDU> <13851@smoke.BRL.MIL> <2497@idunno.Princeton.EDU> <13858@smoke.BRL.MIL> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 17 In article <13858@smoke.BRL.MIL> gwyn@smoke.BRL.MIL (Doug Gwyn) writes: >In article <2497@idunno.Princeton.EDU> pfalstad@phoenix.Princeton.EDU (Paul John Falstad) writes: >-matches its inode; but that only works until you get to the root of the >-filesystem your directory is mounted in (I don't mean "/"). What then? Do >-you have to check /etc/mtab? > >Yes, you got it, exactly. Actually you can use the device number portion. (get the device number from the current directory and then stat each entry in the .. directory looking for an entry on the same device). -- Conor P. Cahill (703)430-9247 Virtual Technologies, Inc., uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160 Sterling, VA 22170