Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27434 - app-misc/secure-delete-2.3: hardlinked files will be wiped by srm
Summary: app-misc/secure-delete-2.3: hardlinked files will be wiped by srm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-27 11:40 UTC by valli
Modified: 2003-09-17 06:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description valli 2003-08-27 11:40:06 UTC
If I do the following:
echo "blablabla." > test1.txt
ln test1.txt test2.txt
srm test2.txt
---> test1.txt is now empty!!! This is not that what one expect.
I think, this bug is fixed in version 3.0; but this one is not available
in the portage.

Reproducible: Always
Steps to Reproduce:
1. echo "blablabla." > test1.txt
2. ln test1.txt test2.txt
3. srm test2.txt
4. ---> test1.txt is now empty!!!

Actual Results:  
---> test1.txt is now empty!!!

Expected Results:  
the content of test1.txt still exists!

Portage 2.0.49-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r5)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Pentium III (Coppermine)
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share
/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs sandbox buildpkg ccache distcc userpriv usersandbox notitle
s noclean noauto cvs keeptemp keepwork"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo http://gentoo.o
regonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww m
ad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv 
zlib gdbm berkdb slang readline arts svga java X sdl gpm tcpd pam ssl perl pytho
n esd imlib oggvorbis gtk qt motif opengl mozilla -kde -gnome gtk2 sasl tiff wmf
"
Comment 1 Daniel Ahlberg (RETIRED) gentoo-dev 2003-09-17 06:49:48 UTC
Version 3.0 commited. The new version says: "Error: File test2.txt - file is 
hardlinked 1 time(s), skipping!"