Skip to content

Commit

Permalink
ignore when listxattr fails with ENODATA
Browse files Browse the repository at this point in the history
This happens on CIFS and means the remote filesystem has no extended
attributes.
  • Loading branch information
symphorien committed Aug 13, 2018
1 parent f72c907 commit 5b19a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstore/local-store.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5b19a66

Please sign in to comment.