summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-09 20:27:11 +0000
committerJim Meyering <jim@meyering.net>2000-05-09 20:27:11 +0000
commitb9c210715ccd1aeb0b7af255f9c03c291951a011 (patch)
tree171e53b8a3b26463fce00bac4d00c7c93e1da125 /src
parent101160bdf97a7a98b7268c75b9e0685fbaf93999 (diff)
downloadcoreutils-b9c210715ccd1aeb0b7af255f9c03c291951a011.tar.xz
back out last change -- the two should be separate
Diffstat (limited to 'src')
-rw-r--r--src/shred.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shred.c b/src/shred.c
index 158eedd02..d192a1a33 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -85,7 +85,6 @@
#include <stdio.h>
#include <setjmp.h>
#include <signal.h>
-#include <sys/types.h>
#if HAVE_CONFIG_H
/* Default fileutils build */
@@ -477,6 +476,7 @@ Delete a file securely, first overwriting it to hide its contents.\n\
\n\
FIXME maybe add more discussion here?"), DEFAULT_PASSES);
puts (_("\nReport bugs to <bug-fileutils@gnu.org>."));
+ close_stdout ();
}
exit (status);
}
@@ -1812,6 +1812,8 @@ main (int argc, char **argv)
/* Just on general principles, wipe s. */
memset (&s, 0, sizeof s);
+ close_stdout ();
+
exit (err);
}
/*