Subject: Re: bin/7504: /bin/pwd doesn't sync with man page
To: None <netbsd-bugs@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: netbsd-bugs
Date: 05/01/1999 14:13:57
swagarow@hotmail.com <swagarow@hotmail.com> typed:
:>Description:
:Man page for pwd(1) says about -L option, which doesn't work 
:of course.
:
:>How-To-Repeat:
:$ /bin/pwd -L
:pwd: : Undefined error: 0

The problem is that its error messages are unuseful in the case
where the env. var. PWD isn't set or doesn't begin with / or is not
stat()able.  The fix then is to add around line 136 (before return NULL)
  errno = EINVAL;
or maybe ENOENT.

Regards,
-- 
Geoff Wing   <gcw@pobox.com>            Mobile : (Australia) 0413 431 874 <<<new
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/