]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include sys/types.h in shred.c before including
authorJim Meyering <jim@meyering.net>
Tue, 9 May 2000 20:25:58 +0000 (20:25 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 9 May 2000 20:25:58 +0000 (20:25 +0000)
sys/stat.h or system.h.  From John David Anglin.

src/shred.c

index d192a1a330fd6b8c5f8bd68cb5105076beaa067b..158eedd023df6f79f69962e168ff41959357a047 100644 (file)
@@ -85,6 +85,7 @@
 #include <stdio.h>
 #include <setjmp.h>
 #include <signal.h>
+#include <sys/types.h>
 
 #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 <bug-fileutils@gnu.org>."));
-      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);
 }
 /*