From: Wayne Davison Date: Sat, 15 Aug 2009 13:40:12 +0000 (-0700) Subject: Allow Solaris sys_llistxattr() to return the list length when size == 0. X-Git-Tag: v3.1.0pre1~352 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2523d0cc14365293a6d0ecb4e5191e50d92adaa6;p=thirdparty%2Frsync.git Allow Solaris sys_llistxattr() to return the list length when size == 0. --- diff --git a/lib/sysxattrs.c b/lib/sysxattrs.c index 7845d59e..1512518c 100644 --- 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;