mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 21:04:15 -04:00
Allow Solaris sys_llistxattr() to return the list length when size == 0.
This commit is contained in:
1 parent
18bd04018d
commit
2523d0cc14
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user