Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 53321

Summary: app-misc/secure-delete and app-misc/srm overlapping binaries
Product: Gentoo Linux Reporter: Daniel Webert <rockoo>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo-bugs
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Webert 2004-06-08 08:39:33 UTC
app-misc/secure-delete and app-misc/srm overlapping binaries

- have a same binary called /usr/bin/srm and so overwrite the other package :( 
- see also probs while unmerging one of them (killing the over binary) 
- also watch out 4 'man srm' 

<snip>
porkoo rockoo # /usr/bin/srm --version
srm (srm) 1.2.8
</snap>

<snip>
porkoo rockoo # /usr/bin/srm --version
srm: invalid option -- -
srm v3.0 (c) 1997-2003 by van Hauser / THC <vh@thc.org>

Syntax: srm [-dflrvz] file1 file2 etc.

Options:
        -d  ignore the two dot special files "." and "..".
        -f  fast (and insecure mode): no /dev/urandom, no synchronize mode.
        -l  lessens the security (use twice for total insecure mode).
        -r  recursive mode, deletes all subdirectories.
        -v  is verbose mode.
        -z  last wipe writes zeros instead of random data.

srm does a secure overwrite/rename/delete of the target file(s).
Default is secure mode (38 writes).
You can find updates at http://www.thc.org
</snap>
Comment 1 Peter Jensen 2004-06-08 09:57:26 UTC
They provide (basically) the same functionality anyway, so the simple solution is to let them block each other.
Add '!app-misc/srm' to DEPEND of the 'app-misc/secure-delete', and vice-versa.
BTW, doesn't 'app-misc/secure-delete' depend on anything?
I would at least have thought 'virtual/glibc' was required ...
Comment 2 Daniel Black (RETIRED) gentoo-dev 2004-06-08 14:47:21 UTC
Fixed. Thanks Daniel and Peter.