diff -Nru wipe-0.24/debian/changelog wipe-0.24/debian/changelog --- wipe-0.24/debian/changelog 2020-09-19 03:24:07.000000000 +0000 +++ wipe-0.24/debian/changelog 2021-10-29 03:16:17.000000000 +0000 @@ -1,3 +1,25 @@ +wipe (0.24-9) unstable; urgency=medium + + * debian/control: bumped Standards-Version to 4.6.0.1. + * debian/watch: updated search rule. + + -- Joao Eriberto Mota Filho Fri, 29 Oct 2021 00:16:17 -0300 + +wipe (0.24-8) unstable; urgency=medium + + * debian/control: bumped Standards-Version to 4.5.1. + * debian/copyright: updated packaging copyright years. + * debian/patches/: + - Added a leading zero to all patch names. + - 010_hide-filenames.patch: added fields Origin and Forwarded. + - 020_fix-warnings.patch: added field Forwarded. + - 030_fix-spelling.patch: added field Forwarded. + - 040_fix-spellings-manpage.patch: added field Forwarded. + * debian/watch: updated the search rule to make it compliant with new + standards of the GitHub. + + -- Joao Eriberto Mota Filho Sat, 21 Aug 2021 14:33:44 -0300 + wipe (0.24-7) unstable; urgency=medium * debian/control: migrated DH level to 13. diff -Nru wipe-0.24/debian/control wipe-0.24/debian/control --- wipe-0.24/debian/control 2020-09-19 03:24:07.000000000 +0000 +++ wipe-0.24/debian/control 2021-10-29 03:16:17.000000000 +0000 @@ -4,7 +4,7 @@ Maintainer: Debian Security Tools Uploaders: Joao Eriberto Mota Filho Build-Depends: debhelper-compat (= 13) -Standards-Version: 4.5.0 +Standards-Version: 4.6.0.1 Rules-Requires-Root: binary-targets Homepage: https://github.com/berke/wipe Vcs-Browser: https://salsa.debian.org/pkg-security-team/wipe diff -Nru wipe-0.24/debian/copyright wipe-0.24/debian/copyright --- wipe-0.24/debian/copyright 2020-09-19 03:24:07.000000000 +0000 +++ wipe-0.24/debian/copyright 2021-10-29 03:15:10.000000000 +0000 @@ -19,7 +19,7 @@ 2006 Alexander Wirt 2006-2009 Daniel Baumann 2011 Julien Valroff - 2015-2020 Joao Eriberto Mota Filho + 2015-2021 Joao Eriberto Mota Filho 2018 Raphaël Hertzog 2019-2020 Samuel Henrique License: GPL-2+ diff -Nru wipe-0.24/debian/patches/010_hide-filenames.patch wipe-0.24/debian/patches/010_hide-filenames.patch --- wipe-0.24/debian/patches/010_hide-filenames.patch 1970-01-01 00:00:00.000000000 +0000 +++ wipe-0.24/debian/patches/010_hide-filenames.patch 2021-10-29 03:15:10.000000000 +0000 @@ -0,0 +1,262 @@ +Description: really delete filenames of deleted files. (Closes: #726388) +Author: Timo Boettcher +Origin: https://github.com/tyll/wipe/commit/0ad42af17b3e7745a4be07cde8ad5a0259b40d15 +Forwarded: not-needed +Last-Update: 2013-10-15 +--- a/wipe.c ++++ b/wipe.c +@@ -77,6 +77,7 @@ + #ifdef HAVE_GETOPT + #include + #endif ++#include + #include + #include + #include +@@ -242,6 +243,9 @@ int o_pass_order[MAX_PASSES] = { -1 }; + + /* End of Options ***/ + ++static int ignorable_sync_errno (int errno_val); ++static int dosync (int fd, char const *qname); ++static int incname (char *name, size_t len); + static int wipe_filename_and_remove (char *fn); + + /*** do_remove */ +@@ -520,73 +524,176 @@ inline static int directory_name_length + static char valid_filename_chars[64] = + "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-."; + ++static int ++ignorable_sync_errno (int errno_val) ++{ ++ return (errno_val == EINVAL ++ || errno_val == EBADF ++ /* HP-UX does this */ ++ || errno_val == EISDIR); ++} ++ ++ ++#define HAVE_FDATASYNC 1 ++static int ++dosync (int fd, char const *qname) ++{ ++ int err; ++ ++#if HAVE_FDATASYNC ++ if (fdatasync (fd) == 0) ++ return 0; ++ err = errno; ++ if ( ! ignorable_sync_errno (err)) { ++ fprintf (stderr, "%s: fdatasync failed", qname); ++ errno = err; ++ return -1; ++ } ++#endif ++ ++ if (fsync (fd) == 0) ++ return 0; ++ err = errno; ++ if ( ! ignorable_sync_errno (err)) { ++ fprintf (stderr, "%s: fsync failed", qname); ++ errno = err; ++ return -1; ++ } ++ ++ sync (); ++ return 0; ++} ++ ++static int ++incname (char *name, size_t len) ++{ ++ while (len--) { ++ char const *p = strchr (valid_filename_chars, name[len]); ++ ++ /* Given that NAME is composed of bytes from NAMESET, ++ P will never be NULL here. */ ++ assert (p); ++ ++ /* If this character has a successor, use it. */ ++ if (p[1]) { ++ name[len] = p[1]; ++ return 0; ++ } ++ ++ /* Otherwise, set this digit to 0 and increment the prefix. */ ++ name[len] = valid_filename_chars[0]; ++ } ++ ++ return -1; ++} ++ ++#ifndef ISSLASH ++# define ISSLASH(C) ((C) == '/') ++#endif ++ ++char * ++last_component (char const *name) ++{ ++ char const *base = name; ++ char const *p; ++ int saw_slash = -1; ++ ++ while (ISSLASH (*base)) ++ base++; ++ ++ for (p = base; *p; p++) { ++ if (ISSLASH (*p)) ++ saw_slash = -1; ++ else if (saw_slash) { ++ base = p; ++ saw_slash = 0; ++ } ++ } ++ ++ return (char *) base; ++} ++ ++ + /*** wipe_filename_and_remove */ + + /* actually, after renaming a file, the only way to make sure that the + * name change is physically carried out is to call sync (), which flushes + * out ALL the disk caches of the system, whereas for +- * reading and writing one can use the O_SYNC bit to get syncrhonous ++ * reading and writing one can use the O_SYNC bit to get synchronous + * I/O for one file. as sync () is very slow, calling sync () after + * every rename () makes wipe extremely slow. + */ + + static int wipe_filename_and_remove (char *fn) + { +- int i, j, k, l; ++ int len; + int r = -1; + int fn_l, dn_l; +- /* char *dn; */ +- char *buf[2]; ++ char *oldname, *newname; ++ char *dir, *dirc; ++ dirc = strdup(fn); ++ dir = dirname(dirc); + struct stat st; +- int t_l; /* target length */ + +- /* dn = directory_name (fn); */ + fn_l = strlen (fn); + dn_l = directory_name_length (fn); + +- buf[0] = malloc (fn_l + NAME_MAX + 1); +- buf[1] = malloc (fn_l + NAME_MAX + 1); ++ oldname = malloc (fn_l + NAME_MAX + 1); ++ newname = malloc (fn_l + NAME_MAX + 1); + + r = 0; + +- t_l = fn_l - dn_l; /* first target length */ ++ if (oldname && newname) { ++ strcpy (oldname, fn); ++ strcpy (newname, fn); ++ ++ int dir_fd = open (dir, O_RDONLY | O_DIRECTORY | O_NOCTTY | O_NONBLOCK); ++ ++ ++ char *base = last_component(newname); ++ len = strlen(base); ++ fprintf (stderr, "\n"); ++ while (len) { ++ memset (base, valid_filename_chars[0], len); ++ base[len] = 0; ++ do { ++ if (lstat (newname, &st) < 0) { ++ if (!o_silent) { ++ fprintf (stderr, "\rRenaming %32.32s -> %32.32s", oldname, newname); ++ middle_of_line = 1; ++ fflush (stderr); ++ } ++ if (rename (oldname, newname) == 0) { ++ if (0 <= dir_fd && dosync (dir_fd, dir) != 0) ++ r = -1; ++ memcpy (oldname + (base - newname), base, len + 1); ++ break; ++ } else { ++ /* The rename failed: give up on this length. */ ++ fprintf (stderr, "%.32s: could not rename '%s' to '%s': %s (%d)\n", fn, oldname, newname, strerror (errno), errno); ++ break; ++ } ++ } else { ++ //fprintf (stderr, "%.32s: rename target '%s' exists\n", fn, newname); ++ } ++ } while (incname (base, len)); ++ len--; ++ } + +- if (buf[0] && buf[1]) { +- strcpy (buf[0], fn); +- strcpy (buf[1], fn); +- for (j = 1, i = 0; i < o_name_max_passes; j ^= 1, i++) { +- for (k = o_name_max_tries; k; k--) { +- l = t_l; +- fill_random_from_table (buf[j] + dn_l, l, +- valid_filename_chars, 0x3f); +- buf[j][dn_l + l] = 0; +- if (stat (buf[j], &st)) break; +- } + +- if (k) { +- if (!o_silent) { +- fprintf (stderr, "\rRenaming %32.32s -> %32.32s", buf[j^1], buf[j]); +- middle_of_line = 1; +- fflush (stderr); +- } +- if (rename (buf[j^1], buf[j])) { +- FLUSH_MIDDLE +- fprintf (stderr, "%.32s: could not rename '%s' to '%s': %s (%d)\n", +- fn, buf[j^1], buf[j], strerror (errno), errno); +- r = -1; +- break; +- } +- (void) sync (); +- } else { +- /* we could not find a target name of desired length, so +- * increase target length until we find one. */ +- t_l ++; +- j ^= 1; ++ if (remove (oldname)) { ++ fprintf (stderr, "%.32s: failed to unlink '%s'\n", fn, oldname); ++ r = -1; ++ } ++ if (0 <= dir_fd) { ++ dosync (dir_fd, dir); ++ if (close (dir_fd) != 0) { ++ fprintf (stderr, "%s: failed to close\n", dir); ++ r = -1; + } + } +- if (remove (buf[j^1])) r = -1; + } +- free (buf[0]); free (buf[1]); ++ free (oldname); free (newname); free(dirc); + return r; + } + +@@ -1059,7 +1166,7 @@ static int dothejob (char *fn) + } + + #ifndef HAVE_OSYNC +- if (fsync (fd)) { ++ if (dosync (fd,fn)) { + fnerror ("fsync error [1]"); + close (fd); + return -1; +@@ -1067,7 +1174,7 @@ static int dothejob (char *fn) + #endif + } + +- if (fsync (fd)) { ++ if (dosync (fd,fn)) { + fnerror ("fsync error [2]"); + close (fd); + return -1; diff -Nru wipe-0.24/debian/patches/020_fix-warnings.patch wipe-0.24/debian/patches/020_fix-warnings.patch --- wipe-0.24/debian/patches/020_fix-warnings.patch 1970-01-01 00:00:00.000000000 +0000 +++ wipe-0.24/debian/patches/020_fix-warnings.patch 2021-10-29 03:15:10.000000000 +0000 @@ -0,0 +1,25 @@ +Description: fix new warnings caused by old patch 50. +Author: Joao Eriberto Mota Filho +Forwarded: not-needed +Last-Update: 2016-09-06 +--- a/wipe.c ++++ b/wipe.c +@@ -93,6 +93,9 @@ + #include "misc.h" + #include "version.h" + ++// FIX warning: implicit declaration of function ‘dirname’ [-Wimplicit-function-declaration] ++#include ++ + /* includes ***/ + + /*** more defines */ +@@ -629,6 +632,8 @@ static int wipe_filename_and_remove (cha + int len; + int r = -1; + int fn_l, dn_l; ++ // FIX [-Wunused-but-set-variable] ++ (void)dn_l; + char *oldname, *newname; + char *dir, *dirc; + dirc = strdup(fn); diff -Nru wipe-0.24/debian/patches/030_fix-spelling.patch wipe-0.24/debian/patches/030_fix-spelling.patch --- wipe-0.24/debian/patches/030_fix-spelling.patch 1970-01-01 00:00:00.000000000 +0000 +++ wipe-0.24/debian/patches/030_fix-spelling.patch 2021-10-29 03:15:10.000000000 +0000 @@ -0,0 +1,17 @@ +Description: fix a spelling error. +Author: Joao Eriberto Mota Filho +Forwarded: not-needed +Last-Update: 2018-11-20 +Index: wipe/wipe.c +=================================================================== +--- wipe.orig/wipe.c ++++ wipe/wipe.c +@@ -1084,7 +1084,7 @@ static int dothejob (char *fn) + + if (!o_silent) { + if (o_quick) +- fprintf (stderr, "\rWipoing %.32s, pass %d in quick mode ", fn, i); ++ fprintf (stderr, "\rWiping %.32s, pass %d in quick mode ", fn, i); + else + fprintf (stderr, "\rWiping %.32s, pass %-2d (%-2d) ", fn, i, p[i]); + middle_of_line = 1; diff -Nru wipe-0.24/debian/patches/040_fix-spellings-manpage.patch wipe-0.24/debian/patches/040_fix-spellings-manpage.patch --- wipe-0.24/debian/patches/040_fix-spellings-manpage.patch 1970-01-01 00:00:00.000000000 +0000 +++ wipe-0.24/debian/patches/040_fix-spellings-manpage.patch 2021-10-29 03:15:10.000000000 +0000 @@ -0,0 +1,44 @@ +Description: fix some spelling errors in manpage. +Author: Joao Eriberto Mota Filho +Forwarded: https://github.com/berke/wipe/pull/12 +Last-Update: 2020-02-07 +--- wipe-0.24.orig/wipe.1 ++++ wipe-0.24/wipe.1 +@@ -206,14 +206,14 @@ argument will not be used). This is of c + the least secure setting. + + .TP 0.5i +-.B -M (select pseudo-random number generator algorythm) ++.B -M (select pseudo-random number generator algorithm) + + .PP + .PD 0 + During the random passes, + .B wipe + overwrites the target files with a stream of binary data, +-created by the following choice of algorythms: ++created by the following choice of algorithms: + .TP 0.5i + .B l + will use (depending on your system) your libc's random() or rand() pseudorandom +@@ -227,9 +227,9 @@ with the well-known RC4 cipher. This mea + generates exactly the same stream as RC4... + .TP 0.5i + .B r +-will use the fresh RC6 algorythm as a PRNG; RC6 is keyed with the 128-bit seed, ++will use the fresh RC6 algorithm as a PRNG; RC6 is keyed with the 128-bit seed, + and then a null block is repeatedly encrypted to get the pseudo-random stream. +-I guess this sould be quite secure. Of course RC6 with 20 rounds is slower than ++I guess this should be quite secure. Of course RC6 with 20 rounds is slower than + random(); the compile-time option WEAK_RC6 allows you to use a 4-round version + of RC6, which is faster. In order to be able to use RC6, wipe must be compiled + with ENABLE_RC6 defined; see the Makefile for warnings about patent issues. +@@ -427,7 +427,7 @@ is used by default to seed the pseudo-ra + If set, + .B wipe + will execute the command specified in it (using popen()), and will hash the +-command's output with the MD5 message-digest algorythm to get a 128-bit seed ++command's output with the MD5 message-digest algorithm to get a 128-bit seed + for its PRNG. For example, on systems lacking a /dev/random device, this + variable might be set in /etc/profile to a shell script which contains various + commands such as ls, ps, who, last, etc. and which are run asynchronously in diff -Nru wipe-0.24/debian/patches/10_hide-filenames.patch wipe-0.24/debian/patches/10_hide-filenames.patch --- wipe-0.24/debian/patches/10_hide-filenames.patch 2020-09-19 03:23:51.000000000 +0000 +++ wipe-0.24/debian/patches/10_hide-filenames.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,260 +0,0 @@ -Description: really delete filenames of deleted files. (Closes: #726388) -Author: Timo Boettcher -Last-Update: 2013-10-15 ---- a/wipe.c -+++ b/wipe.c -@@ -77,6 +77,7 @@ - #ifdef HAVE_GETOPT - #include - #endif -+#include - #include - #include - #include -@@ -242,6 +243,9 @@ int o_pass_order[MAX_PASSES] = { -1 }; - - /* End of Options ***/ - -+static int ignorable_sync_errno (int errno_val); -+static int dosync (int fd, char const *qname); -+static int incname (char *name, size_t len); - static int wipe_filename_and_remove (char *fn); - - /*** do_remove */ -@@ -520,73 +524,176 @@ inline static int directory_name_length - static char valid_filename_chars[64] = - "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-."; - -+static int -+ignorable_sync_errno (int errno_val) -+{ -+ return (errno_val == EINVAL -+ || errno_val == EBADF -+ /* HP-UX does this */ -+ || errno_val == EISDIR); -+} -+ -+ -+#define HAVE_FDATASYNC 1 -+static int -+dosync (int fd, char const *qname) -+{ -+ int err; -+ -+#if HAVE_FDATASYNC -+ if (fdatasync (fd) == 0) -+ return 0; -+ err = errno; -+ if ( ! ignorable_sync_errno (err)) { -+ fprintf (stderr, "%s: fdatasync failed", qname); -+ errno = err; -+ return -1; -+ } -+#endif -+ -+ if (fsync (fd) == 0) -+ return 0; -+ err = errno; -+ if ( ! ignorable_sync_errno (err)) { -+ fprintf (stderr, "%s: fsync failed", qname); -+ errno = err; -+ return -1; -+ } -+ -+ sync (); -+ return 0; -+} -+ -+static int -+incname (char *name, size_t len) -+{ -+ while (len--) { -+ char const *p = strchr (valid_filename_chars, name[len]); -+ -+ /* Given that NAME is composed of bytes from NAMESET, -+ P will never be NULL here. */ -+ assert (p); -+ -+ /* If this character has a successor, use it. */ -+ if (p[1]) { -+ name[len] = p[1]; -+ return 0; -+ } -+ -+ /* Otherwise, set this digit to 0 and increment the prefix. */ -+ name[len] = valid_filename_chars[0]; -+ } -+ -+ return -1; -+} -+ -+#ifndef ISSLASH -+# define ISSLASH(C) ((C) == '/') -+#endif -+ -+char * -+last_component (char const *name) -+{ -+ char const *base = name; -+ char const *p; -+ int saw_slash = -1; -+ -+ while (ISSLASH (*base)) -+ base++; -+ -+ for (p = base; *p; p++) { -+ if (ISSLASH (*p)) -+ saw_slash = -1; -+ else if (saw_slash) { -+ base = p; -+ saw_slash = 0; -+ } -+ } -+ -+ return (char *) base; -+} -+ -+ - /*** wipe_filename_and_remove */ - - /* actually, after renaming a file, the only way to make sure that the - * name change is physically carried out is to call sync (), which flushes - * out ALL the disk caches of the system, whereas for -- * reading and writing one can use the O_SYNC bit to get syncrhonous -+ * reading and writing one can use the O_SYNC bit to get synchronous - * I/O for one file. as sync () is very slow, calling sync () after - * every rename () makes wipe extremely slow. - */ - - static int wipe_filename_and_remove (char *fn) - { -- int i, j, k, l; -+ int len; - int r = -1; - int fn_l, dn_l; -- /* char *dn; */ -- char *buf[2]; -+ char *oldname, *newname; -+ char *dir, *dirc; -+ dirc = strdup(fn); -+ dir = dirname(dirc); - struct stat st; -- int t_l; /* target length */ - -- /* dn = directory_name (fn); */ - fn_l = strlen (fn); - dn_l = directory_name_length (fn); - -- buf[0] = malloc (fn_l + NAME_MAX + 1); -- buf[1] = malloc (fn_l + NAME_MAX + 1); -+ oldname = malloc (fn_l + NAME_MAX + 1); -+ newname = malloc (fn_l + NAME_MAX + 1); - - r = 0; - -- t_l = fn_l - dn_l; /* first target length */ -+ if (oldname && newname) { -+ strcpy (oldname, fn); -+ strcpy (newname, fn); -+ -+ int dir_fd = open (dir, O_RDONLY | O_DIRECTORY | O_NOCTTY | O_NONBLOCK); -+ -+ -+ char *base = last_component(newname); -+ len = strlen(base); -+ fprintf (stderr, "\n"); -+ while (len) { -+ memset (base, valid_filename_chars[0], len); -+ base[len] = 0; -+ do { -+ if (lstat (newname, &st) < 0) { -+ if (!o_silent) { -+ fprintf (stderr, "\rRenaming %32.32s -> %32.32s", oldname, newname); -+ middle_of_line = 1; -+ fflush (stderr); -+ } -+ if (rename (oldname, newname) == 0) { -+ if (0 <= dir_fd && dosync (dir_fd, dir) != 0) -+ r = -1; -+ memcpy (oldname + (base - newname), base, len + 1); -+ break; -+ } else { -+ /* The rename failed: give up on this length. */ -+ fprintf (stderr, "%.32s: could not rename '%s' to '%s': %s (%d)\n", fn, oldname, newname, strerror (errno), errno); -+ break; -+ } -+ } else { -+ //fprintf (stderr, "%.32s: rename target '%s' exists\n", fn, newname); -+ } -+ } while (incname (base, len)); -+ len--; -+ } - -- if (buf[0] && buf[1]) { -- strcpy (buf[0], fn); -- strcpy (buf[1], fn); -- for (j = 1, i = 0; i < o_name_max_passes; j ^= 1, i++) { -- for (k = o_name_max_tries; k; k--) { -- l = t_l; -- fill_random_from_table (buf[j] + dn_l, l, -- valid_filename_chars, 0x3f); -- buf[j][dn_l + l] = 0; -- if (stat (buf[j], &st)) break; -- } - -- if (k) { -- if (!o_silent) { -- fprintf (stderr, "\rRenaming %32.32s -> %32.32s", buf[j^1], buf[j]); -- middle_of_line = 1; -- fflush (stderr); -- } -- if (rename (buf[j^1], buf[j])) { -- FLUSH_MIDDLE -- fprintf (stderr, "%.32s: could not rename '%s' to '%s': %s (%d)\n", -- fn, buf[j^1], buf[j], strerror (errno), errno); -- r = -1; -- break; -- } -- (void) sync (); -- } else { -- /* we could not find a target name of desired length, so -- * increase target length until we find one. */ -- t_l ++; -- j ^= 1; -+ if (remove (oldname)) { -+ fprintf (stderr, "%.32s: failed to unlink '%s'\n", fn, oldname); -+ r = -1; -+ } -+ if (0 <= dir_fd) { -+ dosync (dir_fd, dir); -+ if (close (dir_fd) != 0) { -+ fprintf (stderr, "%s: failed to close\n", dir); -+ r = -1; - } - } -- if (remove (buf[j^1])) r = -1; - } -- free (buf[0]); free (buf[1]); -+ free (oldname); free (newname); free(dirc); - return r; - } - -@@ -1059,7 +1166,7 @@ static int dothejob (char *fn) - } - - #ifndef HAVE_OSYNC -- if (fsync (fd)) { -+ if (dosync (fd,fn)) { - fnerror ("fsync error [1]"); - close (fd); - return -1; -@@ -1067,7 +1174,7 @@ static int dothejob (char *fn) - #endif - } - -- if (fsync (fd)) { -+ if (dosync (fd,fn)) { - fnerror ("fsync error [2]"); - close (fd); - return -1; diff -Nru wipe-0.24/debian/patches/20_fix-warnings.patch wipe-0.24/debian/patches/20_fix-warnings.patch --- wipe-0.24/debian/patches/20_fix-warnings.patch 2020-09-19 03:23:51.000000000 +0000 +++ wipe-0.24/debian/patches/20_fix-warnings.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,24 +0,0 @@ -Description: fix new warnings caused by 50 patch. -Author: Joao Eriberto Mota Filho -Last-Update: 2016-09-06 ---- a/wipe.c -+++ b/wipe.c -@@ -93,6 +93,9 @@ - #include "misc.h" - #include "version.h" - -+// FIX warning: implicit declaration of function ‘dirname’ [-Wimplicit-function-declaration] -+#include -+ - /* includes ***/ - - /*** more defines */ -@@ -629,6 +632,8 @@ static int wipe_filename_and_remove (cha - int len; - int r = -1; - int fn_l, dn_l; -+ // FIX [-Wunused-but-set-variable] -+ (void)dn_l; - char *oldname, *newname; - char *dir, *dirc; - dirc = strdup(fn); diff -Nru wipe-0.24/debian/patches/30_fix-spelling.patch wipe-0.24/debian/patches/30_fix-spelling.patch --- wipe-0.24/debian/patches/30_fix-spelling.patch 2020-09-19 03:23:51.000000000 +0000 +++ wipe-0.24/debian/patches/30_fix-spelling.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,16 +0,0 @@ -Description: fix a spelling error. -Author: Joao Eriberto Mota Filho -Last-Update: 2018-11-20 -Index: wipe/wipe.c -=================================================================== ---- wipe.orig/wipe.c -+++ wipe/wipe.c -@@ -1084,7 +1084,7 @@ static int dothejob (char *fn) - - if (!o_silent) { - if (o_quick) -- fprintf (stderr, "\rWipoing %.32s, pass %d in quick mode ", fn, i); -+ fprintf (stderr, "\rWiping %.32s, pass %d in quick mode ", fn, i); - else - fprintf (stderr, "\rWiping %.32s, pass %-2d (%-2d) ", fn, i, p[i]); - middle_of_line = 1; diff -Nru wipe-0.24/debian/patches/40_fix-spellings-manpage.patch wipe-0.24/debian/patches/40_fix-spellings-manpage.patch --- wipe-0.24/debian/patches/40_fix-spellings-manpage.patch 2020-09-19 03:23:51.000000000 +0000 +++ wipe-0.24/debian/patches/40_fix-spellings-manpage.patch 1970-01-01 00:00:00.000000000 +0000 @@ -1,43 +0,0 @@ -Description: fix some spelling errors in manpage. -Author: Joao Eriberto Mota Filho -Last-Update: 2020-02-07 ---- wipe-0.24.orig/wipe.1 -+++ wipe-0.24/wipe.1 -@@ -206,14 +206,14 @@ argument will not be used). This is of c - the least secure setting. - - .TP 0.5i --.B -M (select pseudo-random number generator algorythm) -+.B -M (select pseudo-random number generator algorithm) - - .PP - .PD 0 - During the random passes, - .B wipe - overwrites the target files with a stream of binary data, --created by the following choice of algorythms: -+created by the following choice of algorithms: - .TP 0.5i - .B l - will use (depending on your system) your libc's random() or rand() pseudorandom -@@ -227,9 +227,9 @@ with the well-known RC4 cipher. This mea - generates exactly the same stream as RC4... - .TP 0.5i - .B r --will use the fresh RC6 algorythm as a PRNG; RC6 is keyed with the 128-bit seed, -+will use the fresh RC6 algorithm as a PRNG; RC6 is keyed with the 128-bit seed, - and then a null block is repeatedly encrypted to get the pseudo-random stream. --I guess this sould be quite secure. Of course RC6 with 20 rounds is slower than -+I guess this should be quite secure. Of course RC6 with 20 rounds is slower than - random(); the compile-time option WEAK_RC6 allows you to use a 4-round version - of RC6, which is faster. In order to be able to use RC6, wipe must be compiled - with ENABLE_RC6 defined; see the Makefile for warnings about patent issues. -@@ -427,7 +427,7 @@ is used by default to seed the pseudo-ra - If set, - .B wipe - will execute the command specified in it (using popen()), and will hash the --command's output with the MD5 message-digest algorythm to get a 128-bit seed -+command's output with the MD5 message-digest algorithm to get a 128-bit seed - for its PRNG. For example, on systems lacking a /dev/random device, this - variable might be set in /etc/profile to a shell script which contains various - commands such as ls, ps, who, last, etc. and which are run asynchronously in diff -Nru wipe-0.24/debian/patches/series wipe-0.24/debian/patches/series --- wipe-0.24/debian/patches/series 2020-09-19 03:23:51.000000000 +0000 +++ wipe-0.24/debian/patches/series 2021-10-29 03:15:10.000000000 +0000 @@ -1,4 +1,4 @@ -10_hide-filenames.patch -20_fix-warnings.patch -30_fix-spelling.patch -40_fix-spellings-manpage.patch +010_hide-filenames.patch +020_fix-warnings.patch +030_fix-spelling.patch +040_fix-spellings-manpage.patch diff -Nru wipe-0.24/debian/watch wipe-0.24/debian/watch --- wipe-0.24/debian/watch 2020-09-19 03:23:51.000000000 +0000 +++ wipe-0.24/debian/watch 2021-10-29 03:15:30.000000000 +0000 @@ -1,2 +1,2 @@ version=4 -https://github.com/berke/wipe/releases .*/archive/v?(\d\S+)\.tar\.(?:bz2|gz|xz) +https://github.com/berke/wipe/tags .*/tags/v?(\d\S+)\.tar\.(?:bz2|gz|xz)