Commit 17cc4c38 authored by Wayne Davison's avatar Wayne Davison

Fix read_xattr() for solaris.

parent c55fb5e1
......@@ -145,8 +145,8 @@ static ssize_t read_xattr(int attrfd, void *buf, size_t buflen)
ret = -1;
} else {
size_t bufpos;
for (bufpos = 0; bufpos < buflen; ) {
ssize_t cnt = read(attrfd, buf + bufpos, buflen - bufpos);
for (bufpos = 0; bufpos < sb.st_size; ) {
ssize_t cnt = read(attrfd, buf + bufpos, sb.st_size - bufpos);
if (cnt <= 0) {
if (cnt < 0 && errno == EINTR)
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment