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





------- Comment #5 from cava...@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.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
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