fix incorrect processing of zero size in listxattr
This commit is contained in:
@@ -1316,7 +1316,7 @@ namespace Mono.Fuse.NETStandard {
|
|||||||
}
|
}
|
||||||
if (size == 0)
|
if (size == 0)
|
||||||
bytesWritten = bytesNeeded;
|
bytesWritten = bytesNeeded;
|
||||||
if (size < (ulong) bytesNeeded) {
|
else if (size < (ulong) bytesNeeded) {
|
||||||
errno = Errno.ERANGE;
|
errno = Errno.ERANGE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user