From: Jim Meyering Date: Tue, 9 May 2000 20:25:58 +0000 (+0000) Subject: Include sys/types.h in shred.c before including X-Git-Tag: FILEUTILS-4_0s~83 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5c4406f73118d1b9aebf78c41df23cbe2df53d07;p=thirdparty%2Fcoreutils.git Include sys/types.h in shred.c before including sys/stat.h or system.h. From John David Anglin. --- diff --git a/src/shred.c b/src/shred.c index d192a1a330..158eedd023 100644 --- a/src/shred.c +++ b/src/shred.c @@ -85,6 +85,7 @@ #include #include #include +#include #if HAVE_CONFIG_H /* Default fileutils build */ @@ -476,7 +477,6 @@ 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 .")); - close_stdout (); } exit (status); } @@ -1812,8 +1812,6 @@ main (int argc, char **argv) /* Just on general principles, wipe s. */ memset (&s, 0, sizeof s); - close_stdout (); - exit (err); } /*