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

Fix path display

This commit is contained in:
Eelco Dolstra 2022-07-22 15:11:15 +02:00
parent 7edacb6248
commit c73a7584fb

View file

@ -118,7 +118,7 @@ struct FSInputAccessorImpl : FSInputAccessor
, allowedPaths(std::move(allowedPaths))
, makeNotAllowedError(std::move(makeNotAllowedError))
{
displayPrefix = root.abs();
displayPrefix = root.isRoot() ? "" : root.abs();
}
std::string readFile(const CanonPath & path) override