diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-05 21:49:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-05 21:49:44 +0000 |
commit | e1c98ab3fbc155e3e578d1b44e79b1e8466dc672 (patch) | |
tree | d17cae65d8b4586bbd59f91aff1e75153489e4da /src | |
parent | be9e62c6e03211dcf4f03a3a6795dc21f65c19eb (diff) | |
download | coreutils-e1c98ab3fbc155e3e578d1b44e79b1e8466dc672.tar.xz |
Include "closeout.h".
(main): Call close_stdout.
Diffstat (limited to 'src')
-rw-r--r-- | src/pwd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); } |