/bin/pwd

Conor P. Cahill cpcahil at virtech.uucp
Sat Sep 15 09:38:01 AEST 1990


In article <13858 at smoke.BRL.MIL> gwyn at smoke.BRL.MIL (Doug Gwyn) writes:
>In article <2497 at idunno.Princeton.EDU> pfalstad at 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 



More information about the Comp.unix.questions mailing list