summaryrefslogtreecommitdiff
path: root/src/pwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pwd.c')
-rw-r--r--src/pwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pwd.c b/src/pwd.c
index 7b941132c..6a4ce2ae0 100644
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -76,7 +76,7 @@ main (int argc, char **argv)
wd = xgetcwd ();
if (wd == NULL)
- error (1, errno, _("cannot get current directory"));
+ error (EXIT_FAILURE, errno, _("cannot get current directory"));
printf ("%s\n", wd);
exit (0);