Merge pull request #2350 from symphorien/xattr-cifs

ignore when listxattr fails with ENODATA
This commit is contained in:
Eelco Dolstra 2018-08-13 22:20:04 +02:00 committed by GitHub
commit 746cf2d27e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);