Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c55fb5e
)
Fix read_xattr() for solaris.
author
Wayne Davison
<wayned@samba.org>
Tue, 1 Sep 2009 19:11:32 +0000
(12:11 -0700)
committer
Wayne Davison
<wayned@samba.org>
Tue, 1 Sep 2009 19:11:32 +0000
(12:11 -0700)
lib/sysxattrs.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/sysxattrs.c
b/lib/sysxattrs.c
index
1512518
..
76b6802
100644
(file)
--- a/
lib/sysxattrs.c
+++ b/
lib/sysxattrs.c
@@
-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;