DO NOT REPLY [Bug 3693] rsync -H should break outdated hard-links to identical files

samba-bugs at samba.org samba-bugs at samba.org
Thu Feb 7 03:55:53 GMT 2008


https://bugzilla.samba.org/show_bug.cgi?id=3693





------- Comment #7 from matt at mattmccutchen.net  2008-02-06 21:55 CST -------
There's another aspect to this problem: a file's attributes can be tweaked
unexpectedly through an outdated hard link.  Example:

$ echo data >foo
$ chmod 600 foo
$ ln foo bar
$ rsync -aHi foo bar dest/
>f+++++++++ foo
hf+++++++++ bar => foo
$ rm bar
$ cp -a foo bar
$ chmod 644 bar
$ rsync -aHi foo bar dest/
.f...p..... bar
.f...p..... foo
$ rsync -aHi foo bar dest/
.f...p..... bar
.f...p..... foo
$ rsync -aHi foo bar dest/
.f...p..... bar
.f...p..... foo

--no-tweak-hlinked would fix this.


-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list