diff options
Diffstat (limited to 'src/chown.c')
-rw-r--r-- | src/chown.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chown.c b/src/chown.c index 11c502515..07337f236 100644 --- a/src/chown.c +++ b/src/chown.c @@ -340,7 +340,6 @@ to login group if implied by a `:'. OWNER and GROUP may be numeric as well\n\ as symbolic.\n\ ")); puts (_("\nReport bugs to <bug-fileutils@gnu.org>.")); - close_stdout (); } exit (status); } @@ -361,6 +360,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + recurse = force_silent = 0; while ((optc = getopt_long (argc, argv, "Rcfhv", long_options, NULL)) != -1) @@ -441,7 +442,5 @@ main (int argc, char **argv) old_user, old_group); } - if (verbosity != V_off) - close_stdout (); exit (errors); } |