Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: bob@omni.com (Bob Weissman) Newsgroups: comp.sys.sun Subject: Weirdness with getwd(3) in loopback filesystem Keywords: SunOS Message-ID: <6593@brazos.Rice.edu> Date: 11 Apr 90 23:21:29 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 26 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 9, Issue 119, message 5 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@omni.com UUCP: ...!{apple,pyramid,sgi,tekbspa,uunet}!omni!bob