Subject: Re: kern/4099: Gather coredumps in one place
To: None <current-users@NetBSD.ORG, tsarna@endicor.com>
From: Wolfgang Solfrank <ws@kurt.tools.de>
List: current-users
Date: 09/09/1997 18:18:22
> There's no way to get the current directory's name from the vnode
> pointer?
The current working directory doesn't need to have a name. E.g., try the
following:
$ cd /tmp
$ mkdir xxx
$ cd xxx
$ rmdir /tmp/xxx
$ pwd
/tmp/xxx
$ /bin/pwd
pwd: No such file or directory
$
pwd knows the path only because it is a special hack in the shell. The
binary /bin/pwd cannot find out the path to the current directory, because
there is none.
Ciao,
Wolfgang
--
ws@TooLs.DE (Wolfgang Solfrank, TooLs GmbH) +49-228-985800