Weirdness with getwd(3) in loopback filesystem
Bob Weissman
bob at omni.com
Thu Apr 12 09:21:29 AEST 1990
Thanks to those of you who responded to my question why "mount -t lo ..."
didn't work from within /etc/rc. It works fine after adding the missing
"export PATH" statement so that "mount" can find "mount_lo".
But it appears that getwd(), as shown by /usr/bin/pwd, can't handle
loopbacks.
% mount | grep -v nfs
/dev/sd0a on / type 4.2 (rw,nosuid)
/dev/sd0g on /usr type 4.2 (rw)
/dev/sd0h on /var type 4.2 (rw)
/var/tmp/tmp on /tmp type lo (rw)
% cd /tmp <-----------+
|
% pwd |
/var <-----------+
% dirs
/tmp
Very interesting!
Bob Weissman
Internet: bob at omni.com
UUCP: ...!{apple,pyramid,sgi,tekbspa,uunet}!omni!bob
More information about the Comp.sys.sun
mailing list