DO NOT REPLY [Bug 6633] Extended attributes under Solaris are not supported.
samba-bugs at samba.org
samba-bugs at samba.org
Wed Sep 2 01:51:35 MDT 2009
https://bugzilla.samba.org/show_bug.cgi?id=6633
------- Comment #9 from cavalli at cilea.it 2009-09-02 02:51 CST -------
Thanks for the correction in comment #8. I have another small change to
suggest:
- if ((attrfd = attropen(path, name, O_CREAT|O_WRONLY|O_NOFOLLOW, mode))
< 0)
+ if ((attrfd = attropen(path, name, O_CREAT|O_TRUNC|O_WRONLY|O_NOFOLLOW,
mode)) < 0)
O_TRUNC is needed otherwise for instance if you change a file owner from 1002
to 0 you start with attribute set to
100640 0,0 1002:1002
and end up with this mess:
100640 0,0 0:02:1002
Also about O_NOFOLLOW: does it should avoid setting attributes from symlinks?
More information about the rsync
mailing list