about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2018-08-13T20·20+0200
committerGitHub <noreply@github.com>2018-08-13T20·20+0200
commit746cf2d27e29c6a8b77cf58e3cf164a75779c4e1 (patch)
tree8a83d546387f479a06657b80edf6870a876228f7
parentf72c907ad833fa26800ad1694e63f3cec952b444 (diff)
parent5b19a6663b06a158cb77d170e6740dce7ced6185 (diff)
Merge pull request #2350 from symphorien/xattr-cifs
ignore when listxattr fails with ENODATA
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index 3b2ba65f3b46..c91dbf241bcf 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -450,7 +450,7 @@ static void canonicalisePathMetaData_(const Path & path, uid_t fromUid, InodesSe
     ssize_t eaSize = llistxattr(path.c_str(), nullptr, 0);
 
     if (eaSize < 0) {
-        if (errno != ENOTSUP)
+        if (errno != ENOTSUP && errno != ENODATA)
             throw SysError("querying extended attributes of '%s'", path);
     } else if (eaSize > 0) {
         std::vector<char> eaBuf(eaSize);