DO NOT REPLY [Bug 6633] Extended attributes under Solaris are not supported.

samba-bugs at samba.org samba-bugs at samba.org
Mon Aug 31 03:54:39 MDT 2009


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





------- Comment #5 from cavalli at cilea.it  2009-08-31 04:54 CST -------
I think the problem is that bufpos (and so ret) is always set to "-1" in this
code ( in read_xattr).

If cnt==0 shouldn't this indicate that end of file is reached?

 for (bufpos = 0; bufpos < buflen; ) {
                        ssize_t cnt = read(attrfd, buf + bufpos, buflen -
bufpos);
                        if (cnt <= 0) {
                                if (cnt < 0 && errno == EINTR)
                                        continue;
                                 bufpos = -1; 
                                break;
                        }
                        bufpos += cnt;
                }
                ret = bufpos;


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