Nicola Vitacolonna
2010-Nov-11  22:12 UTC
lsetxattr() failed: Operation not permitted on symlinked locked directory
Hi,
I am using rsync 3.0.7 from MacPorts under Mac OS X 10.6.4. I am getting the
error in the subject in the presence of a symlinked and locked directory with an
extended attribute. To reproduce:
mkdir src
mkdir dst
mkdir src/dir-with-ea-and-uchg
./xattr-util --set mamma.mia "How about a nice pizza?"
src/dir-with-ea-and-uchg
cd src
ln -s dir-with-ea-and-uchg/ symlink-to-dir
chflags uchg dir-with-ea-and-uchg/
cd ..
rsync -avNHAX --fileflags --force-change src/ dst
xattr-util is a utility that I have found at
http://www.bombich.com/groups/ccc/wiki/7ba51/, but any method to add an extended
attribute will do. This is the output:
sending incremental file list
./
symlink-to-dir -> src/dir-with-ea-and-uchg/
dir-with-ea-and-uchg/
rsync: rsync_xal_set:
lsetxattr("dir-with-ea-and-uchg","mamma.mia") failed:
Operation not permitted (1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.samba.org/pipermail/rsync/attachments/20101111/bb639ce4/attachment.html>
Nicola Vitacolonna
2010-Nov-11  22:26 UTC
lsetxattr() failed: Operation not permitted on symlinked locked directory
Sorry, somehow I have screwed up my previous message. In the end, I was asking whether the reported behaviour is reproducible and whether it is a bug. If not, how can I fix the problem? Nicola
Apparently Analagous Threads
- [PATCH] xattrs not set on locked files that already exist on target
- DO NOT REPLY [Bug 5565] New: xattrs not set on locked files that already exist on target
- Error 23 with hard links and 3.0.9 patched
- Why try to update (some) permissions which are the same?
- [Bug 14377] New: rsync rsync_xal_set lsetxattr failed invalid argument