mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Fix build
This commit is contained in:
parent
8e298e8ad9
commit
3414f3804c
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue