From c48697d617c07d280901cf6e1a11ef6fe6d5b6f3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 31 May 2017 20:43:47 +0200 Subject: [PATCH] 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 52fec8dde862264874a4f19be329124ac46adb81) --- src/libstore/local-store.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 67324c0b..c1dadcd8 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -595,8 +595,6 @@ static void canonicalisePathMetaData_(const Path & path, uid_t fromUid, InodesSe for (auto & eaName: tokenizeString(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