aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-31 20:43:47 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-31 20:43:47 +0200
commit52fec8dde862264874a4f19be329124ac46adb81 (patch)
treeacf3a551bdfd5f1a237ccc30e12cbfc0f44c3b02 /src
parentc96e8cd097ce0d181467fddd92acad4341ca566a (diff)
Remove listxattr assertion
It appears that sometimes, listxattr() returns a different value for the query case (i.e. when the buffer size is 0).
Diffstat (limited to 'src')
-rw-r--r--src/libstore/local-store.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index a226e0110..ee36428af 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -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