diff options
Diffstat (limited to 'src/mkdir.c')
-rw-r--r-- | src/mkdir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mkdir.c b/src/mkdir.c index 233827d8c..5964ac4f1 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -71,7 +71,6 @@ Create the DIRECTORY(ies), if they do not already exist.\n\ --version output version information and exit\n\ ")); puts (_("\nReport bugs to <bug-fileutils@gnu.org>.")); - close_stdout (); } exit (status); } @@ -91,6 +90,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + create_parents = 0; while ((optc = getopt_long (argc, argv, "pm:", longopts, NULL)) != -1) |