Commit 2523d0cc authored by Wayne Davison's avatar Wayne Davison

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

parent 18bd0401
......@@ -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;
......
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