GNU bug report logs - #17149
shred - tape data

Previous Next

Package: coreutils;

Reported by: Rupert Russell <Rupert.Russell <at> ilmor.co.uk>

Date: Mon, 31 Mar 2014 15:45:04 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #79 received at 17149 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Rupert Russell <Rupert.Russell <at> ilmor.co.uk>
Cc: 'Paul Eggert' <eggert <at> cs.ucla.edu>,
 "17149 <at> debbugs.gnu.org" <17149 <at> debbugs.gnu.org>
Subject: Re: bug#17149: shred - tape data
Date: Fri, 04 Apr 2014 12:03:04 +0100
On 04/04/2014 11:49 AM, Rupert Russell wrote:
> Paul,
> 
> I have a confession to make and that is I'm not sure really how to deal with the diff file and now the fixup for the patch.
> Googling around, I can see that 
> patch -p1 < shred1.diff 
> needs to be run from where the source resides.
> But then it's not immediately obvious to me, at my relatively light level of Linux knowledge, if this requires a remake or compilation of the kernel.
> If it does, then it's not something I've done before, and depending on where I read, the methods for doing this aren't universally the same.
> 
> Might I have a few pointers please?

The patch works around the kernel behavior and so no changes are needed there.
To compile a new shred binary for testing:

  mkdir shred-test && cd shred-test
  wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.22.tar.xz
  tar -xf coreutils-8.22.tar.xz
  cd coreutils-8.22
  wget 'http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=patch;h=88545ad0' -O- | patch -p1
  ./configure --quiet && make -j $(nproc)

Now the new shred is available in src/shred.
You can run it directly from there or copy to somewhere like /usr/local/bin.

cheers,
Pádraig.





This bug report was last modified 11 years and 44 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.