As we all know, only osx supports xattrs on symlinks. Unfortunately, not only does osx support xattrs on symlinks, *every* symlink has, at the least, com.apple.FinderInfo. When backing up to a linux system, this results in one error message per symlink: rsync: rsync_xal_set: lsetxattr("User Guides And Information","user.com.apple.FinderInfo") failed: Operation not permitted (1) rsync: rsync_xal_set: lsetxattr("User Guides And Information","user.com.apple.crtime96") failed: Operation not permitted (1) rsync: rsync_xal_set: lsetxattr("etc","user.com.apple.FinderInfo") failed: Operation not permitted (1) rsync: rsync_xal_set: lsetxattr("etc","user.com.apple.crtime96") failed: Operation not permitted (1) rsync: rsync_xal_set: lsetxattr("mach","user.com.apple.FinderInfo") failed: Operation not permitted (1) rsync: rsync_xal_set: lsetxattr("mach","user.com.apple.crtime96") failed: Operation not permitted (1)

Although I usually advocate keeping meta-data, in this case I think it would be better to just drop it. Copying them from osx to osx is ok, though. An unfortunate consequence of this is that meta-data for symlink ownership is lost when using fake super on linux, but that was already the case.

Patch to ignore extended attributes on symlinks for non-osx platforms attached.

Attachment: drop-link-xattrs.patch
Description: Binary data

-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to