summaryrefslogtreecommitdiffstats
path: root/bin/pwd
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1998-11-21 08:45:22 +0000
committerjkh <jkh@FreeBSD.org>1998-11-21 08:45:22 +0000
commit6da6538f1a02d614d762116c5bffcbfce77dade8 (patch)
treeceb63a6bda22c58af8b42006c8d37a093d1590e0 /bin/pwd
parent37a1ff186f2f3ad663b3028d8111eab96a4d49e7 (diff)
downloadFreeBSD-src-6da6538f1a02d614d762116c5bffcbfce77dade8.zip
FreeBSD-src-6da6538f1a02d614d762116c5bffcbfce77dade8.tar.gz
Indicate that the thing not found was not /bin/pwd but rather $CWD (or .).
Diffstat (limited to 'bin/pwd')
-rw-r--r--bin/pwd/pwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c
index fab0dfb..92973f9 100644
--- a/bin/pwd/pwd.c
+++ b/bin/pwd/pwd.c
@@ -42,7 +42,7 @@ static char const copyright[] =
static char sccsid[] = "@(#)pwd.c 8.3 (Berkeley) 4/1/94";
#endif
static const char rcsid[] =
- "$Id$";
+ "$Id: pwd.c,v 1.7 1998/05/15 06:30:58 charnier Exp $";
#endif /* not lint */
#include <err.h>
@@ -82,7 +82,7 @@ main(argc, argv)
usage();
if ((p = getcwd(NULL, 0)) == NULL)
- err(1, NULL);
+ err(1, ".");
(void)printf("%s\n", p);
exit(0);
}
OpenPOWER on IntegriCloud