[Pkg-privacy-commits] [libgsecuredelete] 120/168: Always use /dev/zero as the fake data source in the `sfill` wrapper

Ulrike Uhlig u-guest at moszumanska.debian.org
Thu Jul 7 20:06:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

u-guest pushed a commit to branch master
in repository libgsecuredelete.

commit 4cea557a558dcc0fcecba93930a74623fd4ea7cc
Author: Colomban Wendling <ban at herbesfolles.org>
Date:   Thu May 24 18:56:49 2012 +0200

    Always use /dev/zero as the fake data source in the `sfill` wrapper
    
    Filling with pseudo-random data (/dev/urandom) is a fair bit slower and
    is not necessary since the created file is securely deleted afterwards.
---
 gsd-sfill-helper.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gsd-sfill-helper.in b/gsd-sfill-helper.in
index 8c4809a..b73d6f5 100644
--- a/gsd-sfill-helper.in
+++ b/gsd-sfill-helper.in
@@ -116,8 +116,8 @@ fi
 
 # wipe disk space, work around for file size limit
 if [ -z "$OPT_i" ]; then
-  input=/dev/urandom
-  [ -r "$input" ] || input=/dev/zero
+  input=/dev/zero
+  [ -r "$input" ] || die "$input is not readable"
   
   while [ 1 ]; do
     file=$(mktemp --tmpdir="$dir") || die "failed to create temp file"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libgsecuredelete.git



More information about the Pkg-privacy-commits mailing list