summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-05 21:49:44 +0000
committerJim Meyering <jim@meyering.net>2000-05-05 21:49:44 +0000
commite1c98ab3fbc155e3e578d1b44e79b1e8466dc672 (patch)
treed17cae65d8b4586bbd59f91aff1e75153489e4da /src
parentbe9e62c6e03211dcf4f03a3a6795dc21f65c19eb (diff)
downloadcoreutils-e1c98ab3fbc155e3e578d1b44e79b1e8466dc672.tar.xz
Include "closeout.h".
(main): Call close_stdout.
Diffstat (limited to 'src')
-rw-r--r--src/pwd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pwd.c b/src/pwd.c
index b0a8e0108..13812220e 100644
--- a/src/pwd.c
+++ b/src/pwd.c
@@ -1,5 +1,5 @@
/* pwd - print current directory
- Copyright (C) 1994-1997, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1994-1997, 1999, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -22,6 +22,7 @@
#include <sys/types.h>
#include "system.h"
+#include "closeout.h"
#include "long-options.h"
#include "error.h"
@@ -76,5 +77,7 @@ main (int argc, char **argv)
error (1, errno, _("cannot get current directory"));
printf ("%s\n", wd);
+ close_stdout ();
+
exit (0);
}