diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2018-08-14 23:25:22 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2018-08-14 23:25:22 +0300 |
commit | abc801d2bf6fa9474820dae8171f7aed34432fa3 (patch) | |
tree | 167382e36cded76d0a098e327d2ecdf115efd9ee /thirdparty | |
parent | 291604943698d483735278ceff5f9f0101402618 (diff) |
Updated the POSIX support code to ignore `ENODATA` error codes in addition to the `EOPNOTSUPP`.
This fixes #3327
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/UnixSupport/File.cs | 3 | ||||
-rwxr-xr-x | thirdparty/UnixSupport/UnixSupport.dll | bin | 8192 -> 8192 bytes |
2 files changed, 2 insertions, 1 deletions
diff --git a/thirdparty/UnixSupport/File.cs b/thirdparty/UnixSupport/File.cs index c467b036a..c49f3cf03 100644 --- a/thirdparty/UnixSupport/File.cs +++ b/thirdparty/UnixSupport/File.cs @@ -201,7 +201,8 @@ namespace UnixSupport {
// In case the underlying filesystem does not support extended attributes,
// we simply return that there are no attributes
- if (Syscall.GetLastError() == Errno.EOPNOTSUPP)
+ var err = Syscall.GetLastError();
+ if (err == Errno.EOPNOTSUPP || err == Errno.ENODATA)
return null;
throw new FileAccesException(path, use_llistxattr ? "llistxattr" : "listxattr");
diff --git a/thirdparty/UnixSupport/UnixSupport.dll b/thirdparty/UnixSupport/UnixSupport.dll Binary files differindex 5a48244d8..3e19cfe81 100755 --- a/thirdparty/UnixSupport/UnixSupport.dll +++ b/thirdparty/UnixSupport/UnixSupport.dll |