summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-10-26 21:50:58 +0200
committerErich Eckner <git@eckner.net>2023-10-26 21:50:58 +0200
commit559e1a1cecb82609f63005f22e74bb372e0e1f3a (patch)
tree2c456152ddf8251f8039706e837778896e9f98b2 /core
parentdd98bdf2c15def43edda494d748c755a1f0a8f7a (diff)
downloadcrux-patches-559e1a1cecb82609f63005f22e74bb372e0e1f3a.tar.xz
update patch
Diffstat (limited to 'core')
-rw-r--r--core/coreutils/coreutils-shred.patch.new18
1 files changed, 9 insertions, 9 deletions
diff --git a/core/coreutils/coreutils-shred.patch.new b/core/coreutils/coreutils-shred.patch.new
index bcbc4b9..285b07d 100644
--- a/core/coreutils/coreutils-shred.patch.new
+++ b/core/coreutils/coreutils-shred.patch.new
@@ -1,6 +1,6 @@
---- old/src/shred.c 2016-12-16 14:36:58.819399157 +0100
-+++ new/src/shred.c 2016-12-16 14:35:27.590639035 +0100
-@@ -129,6 +129,7 @@
+--- old/src/shred.c 2023-10-26 21:50:03.988504109 +0200
++++ new/src/shred.c 2023-10-26 21:48:50.505173932 +0200
+@@ -131,6 +131,7 @@
struct Options
{
bool force; /* -f flag: chmod files if necessary */
@@ -8,7 +8,7 @@
size_t n_iterations; /* -n flag: Number of iterations */
off_t size; /* -s flag: size of file */
enum remove_method remove_file; /* -u flag: remove file after shredding */
-@@ -148,6 +149,7 @@
+@@ -150,6 +151,7 @@
{
{"exact", no_argument, NULL, 'x'},
{"force", no_argument, NULL, 'f'},
@@ -16,7 +16,7 @@
{"iterations", required_argument, NULL, 'n'},
{"size", required_argument, NULL, 's'},
{"random-source", required_argument, NULL, RANDOM_SOURCE_OPTION},
-@@ -180,6 +182,7 @@
+@@ -182,6 +184,7 @@
printf (_("\
-f, --force change permissions to allow writing if necessary\n\
@@ -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 @@
+@@ -854,6 +857,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 @@
+@@ -1168,7 +1176,7 @@
main (int argc, char **argv)
{
bool ok = true;
@@ -45,7 +45,7 @@
char **file;
int n_files;
int c;
-@@ -1236,7 +1244,7 @@
+@@ -1186,7 +1194,7 @@
flags.n_iterations = DEFAULT_PASSES;
flags.size = -1;
@@ -54,7 +54,7 @@
{
switch (c)
{
-@@ -1244,6 +1252,10 @@
+@@ -1194,6 +1202,10 @@
flags.force = true;
break;