Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2018-08-14 23:25:22 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2018-08-14 23:25:22 +0300
commitabc801d2bf6fa9474820dae8171f7aed34432fa3 (patch)
tree167382e36cded76d0a098e327d2ecdf115efd9ee /thirdparty
parent291604943698d483735278ceff5f9f0101402618 (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.cs3
-rwxr-xr-xthirdparty/UnixSupport/UnixSupport.dllbin8192 -> 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
index 5a48244d8..3e19cfe81 100755
--- a/thirdparty/UnixSupport/UnixSupport.dll
+++ b/thirdparty/UnixSupport/UnixSupport.dll
Binary files differ