-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: fdupes
Version: 1.50-PR2-3

fdupes should respect uid, gid and access permissions before
replacing files by hard links. Sample session:

% umask 0022; echo hello >a; cp -p a b; ln b c; chmod go-r b; ls -li
total 12
27394110 -rw-r--r-- 1 harri harri 6 Jul 23 11:36 a
27394111 -rw------- 2 harri harri 6 Jul 23 11:36 b
27394111 -rw------- 2 harri harri 6 Jul 23 11:36 c
% fdupes -L .
   [+] ./c
   [h] ./a
   [h] ./b

% ls -li
total 12
27394111 -rw------- 3 harri harri 6 Jul 23 11:36 a
27394111 -rw------- 3 harri harri 6 Jul 23 11:36 b
27394111 -rw------- 3 harri harri 6 Jul 23 11:36 c


See how a world readable file became unreadable for anybody
but the owner?

Since "a" has different access permissions it shouldn't
have been replaced by a hard link to b. Same goes for
identical files with different owners. fdupes is loosing
too much information here.


Regards

Harri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk4ql00ACgkQUTlbRTxpHjfFUwCghTczFVenV5Zply3tQmo6o953
YRQAnRC37eNKIY23VYkZSMc02Kkv4PlF
=KDJW
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to