1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 12:06:01 +01:00

fix mingw build

This commit is contained in:
Jörg Thalheim 2025-09-29 10:28:52 +02:00
parent b5f765b7eb
commit 69eae7770a

View file

@ -330,7 +330,7 @@ static void readProcLink(const std::filesystem::path & file, UncheckedRoots & ro
throw; throw;
} }
if (buf.is_absolute()) if (buf.is_absolute())
roots[buf].emplace(file.string()); roots[buf.string()].emplace(file.string());
} }
static std::string quoteRegexChars(const std::string & raw) static std::string quoteRegexChars(const std::string & raw)
@ -343,7 +343,7 @@ static std::string quoteRegexChars(const std::string & raw)
static void readFileRoots(const std::filesystem::path & path, UncheckedRoots & roots) static void readFileRoots(const std::filesystem::path & path, UncheckedRoots & roots)
{ {
try { try {
roots[readFile(path)].emplace(path); roots[readFile(path)].emplace(path.string());
} catch (SysError & e) { } catch (SysError & e) {
if (e.errNo != ENOENT && e.errNo != EACCES) if (e.errNo != ENOENT && e.errNo != EACCES)
throw; throw;