diff options
Diffstat (limited to 'src/mknod.c')
-rw-r--r-- | src/mknod.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mknod.c b/src/mknod.c index d2292f7f5..1233a15e6 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -1,5 +1,5 @@ /* mknod -- make special files - Copyright (C) 90, 91, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 90, 91, 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 @@ -34,6 +34,7 @@ #include "system.h" #include "modechange.h" +#include "closeout.h" #include "error.h" #include "xstrtol.h" @@ -77,6 +78,7 @@ MAJOR MINOR are forbidden for TYPE p, mandatory otherwise. TYPE may be:\n\ p create a FIFO\n\ ")); puts (_("\nReport bugs to <fileutils-bugs@gnu.org>.")); + close_stdout (); } exit (status); } @@ -116,6 +118,7 @@ main (int argc, char **argv) if (show_version) { printf ("mknod (%s) %s\n", GNU_PACKAGE, VERSION); + close_stdout (); exit (0); } |