diff options
| author | Jim Meyering <jim@meyering.net> | 2000-05-05 21:53:41 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 2000-05-05 21:53:41 +0000 |
| commit | 19c397acdc7bf7cdb6a6cc7e27f54bf76ca71bed (patch) | |
| tree | 3beafb89e36b2a907b4dad69f33a9ad631d5c152 /src/logname.c | |
| parent | Include "closeout.h". (diff) | |
| download | coreutils-19c397acdc7bf7cdb6a6cc7e27f54bf76ca71bed.tar.gz coreutils-19c397acdc7bf7cdb6a6cc7e27f54bf76ca71bed.zip | |
Include "closeout.h".
(main): Call close_stdout.
Diffstat (limited to 'src/logname.c')
| -rw-r--r-- | src/logname.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logname.c b/src/logname.c index c086376d7..9633b2e2f 100644 --- a/src/logname.c +++ b/src/logname.c @@ -1,5 +1,5 @@ /* logname -- print user's login name - Copyright (C) 1990-1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1990-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 @@ -21,6 +21,7 @@ #include <getopt.h> #include "system.h" +#include "closeout.h" #include "long-options.h" /* The official name of this program (e.g., no `g' prefix). */ @@ -90,6 +91,7 @@ main (int argc, char **argv) if (cp) { puts (cp); + close_stdout (); exit (0); } /* POSIX.2 prohibits using a fallback technique. */ |
