git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18bd040
)
Allow Solaris sys_llistxattr() to return the list length when size == 0.
author
Wayne Davison
<wayned@samba.org>
Sat, 15 Aug 2009 13:40:12 +0000
(06:40 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sat, 15 Aug 2009 13:43:06 +0000
(06:43 -0700)
lib/sysxattrs.c
patch
|
blob
|
history
diff --git
a/lib/sysxattrs.c
b/lib/sysxattrs.c
index 7845d59ebd65ac24173fd11589b90a606335b7fd..1512518c51ff87225c45f673fc480160b792be84 100644
(file)
--- a/
lib/sysxattrs.c
+++ b/
lib/sysxattrs.c
@@
-254,6
+254,8
@@
ssize_t sys_llistxattr(const char *path, char *list, size_t size)
continue;
if ((ret += len+1) > size) {
+ if (size == 0)
+ continue;
ret = -1;
errno = ERANGE;
break;