DO NOT REPLY [Bug 3692] regression: symlinks are created as hardlinks with --link-dest

samba-bugs at samba.org samba-bugs at samba.org
Mon Apr 17 20:35:12 GMT 2006


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





------- Comment #5 from hashproduct at verizon.net  2006-04-17 15:35 MST -------
The new configure check for CAN_HARDLINK_SYMLINK should work, assuming that
BSD's link(2) fails to follow the dangling symlink and fails with ENOENT. 
However, there might be a pathological system whose link(2) hardlinks the
symlink target if possible and otherwise the dangling symlink.

It would be safer if the configure script called link(2) on a good symlink and
checked whether the result was a symlink using lstat(2) because this check is
closer to rsync's use case.

Perhaps it would be a good idea in general for a receiving rsync, when it
finishes with a file, to lstat the file again and warn the user if the file's
preserved attributes differ from the attributes in its file-list entry.


-- 
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