Allow Solaris sys_llistxattr() to return the list length when size == 0.

This commit is contained in:
Wayne Davison committed 2009-08-15 06:43:06 -07:00
1 parent 18bd04018d
commit 2523d0cc14
1 file changed
+2
+2
View File
@@ -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;