summaryrefslogtreecommitdiff
path: root/src/shred.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-23 15:17:54 +0000
committerJim Meyering <jim@meyering.net>1999-01-23 15:17:54 +0000
commit8b036d56efb1fadafc21712a4a4f181d1b4105e9 (patch)
tree67332449ca96f4769cc8583ddfa24690edfa7da5 /src/shred.c
parent758bbda7882acbbb89556d8fa5d9b83a1e252edb (diff)
downloadcoreutils-8b036d56efb1fadafc21712a4a4f181d1b4105e9.tar.xz
s/sterilize/shred/g
Don't include headers already included (and guarded by HAVE_FOO_H tests) in system.h.
Diffstat (limited to 'src/shred.c')
-rw-r--r--src/shred.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/shred.c b/src/shred.c
index 55388a4b1..85c848c98 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -5,7 +5,7 @@
*/
/*
- * sterilize.c - by Colin Plumb.
+ * shred.c - by Colin Plumb.
*
* Do a secure overwrite of given files or devices, so that not even
* very expensive hardware probing can recover the data.
@@ -53,25 +53,12 @@
* - Security: Is there any risk to the race
* between overwriting and unlinking a file? Will it do anything
* drastically bad if told to attack a named pipes or a sockets?
- *
- * - Portability: It's currently only tested on Linux. Do we need autoconf
- * for anything? fdatasync()? fsync() is always a legal replacement.
- * I'd prefer to do it in one source file if possible.
*/
#include <config.h>
#include <getopt.h>
-#include <sys/stat.h> /* For struct stat */
-#include <sys/time.h> /* For struct timeval */
-#include <stdio.h>
#include <stdarg.h> /* Used by pferror */
-#include <stdlib.h> /* For free() */
-#include <unistd.h> /* for open(), close(), write(), fstat() */
-#include <fcntl.h> /* for open(), close(), O_RDWR */
-#include <string.h> /* For strlen(), memcpy(), memset(), etc. */
-#include <limits.h> /* For UINT_MAX, etc. */
-#include <errno.h> /* For errno */
#include "system.h"
#include "xstrtoul.h"
@@ -136,8 +123,8 @@ Delete a file securely, first overwriting it to hide its contents.\n\
-p, --preserve do not delete file after overwriting\n\
-v, --verbose indicate progress (-vv to leave progress on screen)\n\
-x, --exact do not round file sizes up to the next full block\n\
- -z, --zero add a final overwrite with zeros to hide sterilization\n\
- - sterilize standard input (but don't delete it);\n\
+ -z, --zero add a final overwrite with zeros to hide shredding\n\
+ - shred standard input (but don't delete it);\n\
this will fail unless you use <>file, a safety feature\n\
--help display this help and exit\n\
--version print version information and exit\n\
@@ -1377,7 +1364,7 @@ main (int argc, char **argv)
if (show_version)
{
- printf ("sterilize (%s) %s\n", GNU_PACKAGE, VERSION);
+ printf ("shred (%s) %s\n", GNU_PACKAGE, VERSION);
close_stdout ();
exit (0);
}