aboutsummaryrefslogtreecommitdiff
path: root/bin/pwd
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-11-21 08:45:22 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-11-21 08:45:22 +0000
commitf21a1a1015b056eb369f8c3bcdda9b4eb932c7df (patch)
treeecbaa5282489bfbbf596503defc4cc9dd9dbf996 /bin/pwd
parente83348169b37fbd312e1d87265318cacceddd5b7 (diff)
downloadsrc-f21a1a1015b056eb369f8c3bcdda9b4eb932c7df.tar.gz
src-f21a1a1015b056eb369f8c3bcdda9b4eb932c7df.zip
Indicate that the thing not found was not /bin/pwd but rather $CWD (or .).
Notes
Notes: svn path=/head/; revision=41280
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 fab0dfbd0a42..92973f9b8e35 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);
}