Package: hardlink
Version: 0.1
Severity: grave
Justification: causes non-serious data loss
*** Please type your report below this line ***
if foo file is duplicated and file foo.bak exist in same directory
hardlink remove .bak file.
You can reproduce this error this way:
% mkdir dir
% echo test >dir/foo
% cp -a dir dir2
% echo test2 > dir/foo.bak
% echo test3 > dir2/foo.bak
% hardlink -m -t .
Error: Comparing ./dir2/foo.bak to ./dir/foo.bak failed
[Errno 2] No such file or directory: './dir2/foo.bak'
% find
./dir
./dir/foo
./dir/foo.bak
./dir2
./dir2/foo
Error is in code:
def link(self, other):
'''Link the current file to another one'''
backup = other.path + '.bak'
[...] os.rename(other.path, backup)
hardlink not test if .bak file exist, overwrite, and remove file.
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/bash
Versions of packages hardlink depends on:
ii python 2.5.2-3 An interactive high-level object-o
hardlink recommends no packages.
hardlink suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]