Remove listxattr assertion

It appears that sometimes, listxattr() returns a different value for
the query case (i.e. when the buffer size is 0).

(cherry picked from commit 52fec8dde8)
This commit is contained in:
Eelco Dolstra 2017-05-31 20:43:47 +02:00
parent 4be5a65b39
commit c48697d617
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
1 changed files with 0 additions and 2 deletions

View File

@ -595,8 +595,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)))
if (lremovexattr(path.c_str(), eaName.c_str()) == -1)
throw SysError("removing extended attribute %s from %s", eaName, path);
assert(llistxattr(path.c_str(), nullptr, 0) == 0);
}
#endif