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

Merge pull request #14109 from Mic92/mingw

fix mingw build
This commit is contained in:
Jörg Thalheim 2025-09-29 10:57:43 +02:00 committed by GitHub
commit 5e65fa7069
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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