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:
parent
b5f765b7eb
commit
69eae7770a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue