1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Fix build

This commit is contained in:
Eelco Dolstra 2017-06-12 13:55:59 +02:00
parent 8e298e8ad9
commit 3414f3804c
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -585,16 +585,16 @@ static void canonicalisePathMetaData_(const Path & path, uid_t fromUid, InodesSe
if (eaSize < 0) {
if (errno != ENOTSUP)
throw SysError("querying extended attributes of %s", path);
throw SysError(format("querying extended attributes of %s") % path);
} else if (eaSize > 0) {
std::vector<char> eaBuf(eaSize);
if ((eaSize = llistxattr(path.c_str(), eaBuf.data(), eaBuf.size())) < 0)
throw SysError("querying extended attributes of %s", path);
throw SysError(format("querying extended attributes of %s") % path);
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);
throw SysError(format("removing extended attribute %s from %s") % eaName % path);
}
#endif