Remove listxattr assertion

It appears that sometimes, listxattr() returns a different value for
the query case (i.e. when the buffer size is 0).
This commit is contained in:
Eelco Dolstra 2017-05-31 20:43:47 +02:00
parent c96e8cd097
commit 52fec8dde8
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -424,8 +424,6 @@ static void canonicalisePathMetaData_(const Path & path, uid_t fromUid, InodesSe
for (auto & eaName: tokenizeString<Strings>(std::string(eaBuf.data(), eaSize), std::string("\000", 1))) for (auto & eaName: tokenizeString<Strings>(std::string(eaBuf.data(), eaSize), std::string("\000", 1)))
if (lremovexattr(path.c_str(), eaName.c_str()) == -1) if (lremovexattr(path.c_str(), eaName.c_str()) == -1)
throw SysError("removing extended attribute %s from %s", eaName, path); throw SysError("removing extended attribute %s from %s", eaName, path);
assert(llistxattr(path.c_str(), nullptr, 0) == 0);
} }
#endif #endif