forked from lix-project/lix
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:
parent
c96e8cd097
commit
52fec8dde8
|
@ -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)))
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue