From: Pádraig Brady Date: Thu, 22 Jan 2009 13:09:44 +0000 (+0000) Subject: shred: change default number of overwrites from 25 to 3 X-Git-Tag: v7.1~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=83ae1bdd44432055e2cb6cf1502d1cc0cd651746;p=thirdparty%2Fcoreutils.git shred: change default number of overwrites from 25 to 3 * src/shred.c: The concensus is that a default of 3 passes is appropriate for current drive technologies. * src/TODO: Reference Paul Eggert's suggestion of enhancing shred to conform to DoD 5220 rules. --- diff --git a/TODO b/TODO index cc5b0b3dd9..c630548ccd 100644 --- a/TODO +++ b/TODO @@ -107,6 +107,9 @@ sort: Investigate better sorting algorithms; see Knuth vol. 3. 5.3.1, who credits Lester Ford, Jr. and Selmer Johnson, American Mathematical Monthly 66 (1959), 387-389. +shred: Update shred as described here to conform to DoD 5220 rules: +http://lists.gnu.org/archive/html/bug-coreutils/2007-05/msg00075.html + Remove suspicious uses of alloca (ones that may allocate more than about 4k) diff --git a/src/shred.c b/src/shred.c index 224f671cc4..6ed4daaa32 100644 --- a/src/shred.c +++ b/src/shred.c @@ -102,7 +102,7 @@ #include "randread.h" /* Default number of times to overwrite. */ -enum { DEFAULT_PASSES = 25 }; +enum { DEFAULT_PASSES = 3 }; /* How many seconds to wait before checking whether to output another verbose output line. */