diff options
Diffstat (limited to 'src/mkdir.c')
-rw-r--r-- | src/mkdir.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mkdir.c b/src/mkdir.c index a880b0096..89886e158 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -1,5 +1,5 @@ /* mkdir -- make directories - Copyright (C) 90, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 90, 95, 96, 97, 1998 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 @@ -25,6 +25,7 @@ #include "system.h" #include "modechange.h" #include "makepath.h" +#include "closeout.h" #include "error.h" /* The name this program was run with. */ @@ -68,6 +69,7 @@ Create the DIRECTORY(ies), if they do not already exist.\n\ --version output version information and exit\n\ ")); puts (_("\nReport bugs to <fileutils-bugs@gnu.org>.")); + close_stdout (); } exit (status); } @@ -112,6 +114,7 @@ main (int argc, char **argv) if (show_version) { printf ("mkdir (%s) %s\n", GNU_PACKAGE, VERSION); + close_stdout (); exit (0); } |