diff options
Diffstat (limited to 'core/coreutils/coreutils-shred.patch.new')
-rw-r--r-- | core/coreutils/coreutils-shred.patch.new | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/core/coreutils/coreutils-shred.patch.new b/core/coreutils/coreutils-shred.patch.new index bcbc4b9..44a6102 100644 --- a/core/coreutils/coreutils-shred.patch.new +++ b/core/coreutils/coreutils-shred.patch.new @@ -1,5 +1,5 @@ ---- old/src/shred.c 2016-12-16 14:36:58.819399157 +0100 -+++ new/src/shred.c 2016-12-16 14:35:27.590639035 +0100 +--- old/src/shred.c 2023-10-26 22:09:37.015120384 +0200 ++++ new/src/shred.c 2023-10-26 22:09:18.888454497 +0200 @@ -129,6 +129,7 @@ struct Options { @@ -10,12 +10,12 @@ enum remove_method remove_file; /* -u flag: remove file after shredding */ @@ -148,6 +149,7 @@ { - {"exact", no_argument, NULL, 'x'}, - {"force", no_argument, NULL, 'f'}, -+ {"shred-hard-links", no_argument, NULL, 'h'}, - {"iterations", required_argument, NULL, 'n'}, - {"size", required_argument, NULL, 's'}, - {"random-source", required_argument, NULL, RANDOM_SOURCE_OPTION}, + {"exact", no_argument, nullptr, 'x'}, + {"force", no_argument, nullptr, 'f'}, ++ {"shred-hard-links", no_argument, nullptr, 'h'}, + {"iterations", required_argument, nullptr, 'n'}, + {"size", required_argument, nullptr, 's'}, + {"random-source", required_argument, nullptr, RANDOM_SOURCE_OPTION}, @@ -180,6 +182,7 @@ printf (_("\ @@ -24,7 +24,7 @@ -n, --iterations=N overwrite N times instead of the default (%d)\n\ --random-source=FILE get random bytes from FILE\n\ -s, --size=N shred this many bytes (suffixes like K, M, G accepted)\n\ -@@ -891,6 +894,11 @@ +@@ -850,6 +853,11 @@ error (0, 0, _("%s: file has negative size"), qname); return false; } @@ -36,7 +36,7 @@ /* Allocate pass array */ passarray = xnmalloc (flags->n_iterations, sizeof *passarray); -@@ -1218,7 +1226,7 @@ +@@ -1163,7 +1171,7 @@ main (int argc, char **argv) { bool ok = true; @@ -45,16 +45,16 @@ char **file; int n_files; int c; -@@ -1236,7 +1244,7 @@ +@@ -1181,7 +1189,7 @@ flags.n_iterations = DEFAULT_PASSES; flags.size = -1; -- while ((c = getopt_long (argc, argv, "fn:s:uvxz", long_opts, NULL)) != -1) -+ while ((c = getopt_long (argc, argv, "fhn:s:uvxz", long_opts, NULL)) != -1) +- while ((c = getopt_long (argc, argv, "fn:s:uvxz", long_opts, nullptr)) != -1) ++ while ((c = getopt_long (argc, argv, "fhn:s:uvxz", long_opts, nullptr)) != -1) { switch (c) { -@@ -1244,6 +1252,10 @@ +@@ -1189,6 +1197,10 @@ flags.force = true; break; |