The Samba-Bugzilla – Bug 10494
remove-source-files fails with symlinks
Last modified: 2015-07-12 20:28:51 UTC
Up thru 3.0.9 transferring symlinks using "-L --remove-source-files" properly transferred the files and removed the symlinks.
Beginning with 3.1.0 this no longer works; the files transfer properly but the symlinks on the source server fail to get deleted. This error message is displayed:
ERROR: Skipping sender remove for changed file: [transferred file name]
I have not been able to find a workaround to this problem, other than downgrading from 3.1.0 back to 3.0.9.
That's weird, as it means that the source symlink must differ in size or modify time from what rsync put into the source file list. However, since that safety check is only really needed for regular files, I've added some code that should avoid this failure for symlinks and devices.