From 91c4e1784da64f4778ffa9ec5056c21687f0d38c Mon Sep 17 00:00:00 2001 From: alhimik45 Date: Sat, 29 Aug 2020 16:22:10 +0300 Subject: [PATCH] fix incorrect processing of zero size in listxattr --- Mono.Fuse.NETStandard/FileSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mono.Fuse.NETStandard/FileSystem.cs b/Mono.Fuse.NETStandard/FileSystem.cs index 967062c..44b3190 100644 --- a/Mono.Fuse.NETStandard/FileSystem.cs +++ b/Mono.Fuse.NETStandard/FileSystem.cs @@ -1316,7 +1316,7 @@ namespace Mono.Fuse.NETStandard { } if (size == 0) bytesWritten = bytesNeeded; - if (size < (ulong) bytesNeeded) { + else if (size < (ulong) bytesNeeded) { errno = Errno.ERANGE; } else {