fix incorrect processing of zero size in listxattr

This commit is contained in:
alhimik45
2020-08-29 16:22:10 +03:00
parent c3094cf652
commit 91c4e1784d

View File

@@ -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 {