From c73a7584fbba9ed96b09bad42901928c2e17098c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 22 Jul 2022 15:11:15 +0200 Subject: [PATCH] Fix path display --- src/libfetchers/input-accessor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libfetchers/input-accessor.cc b/src/libfetchers/input-accessor.cc index 2391124e2..4555a9d9c 100644 --- a/src/libfetchers/input-accessor.cc +++ b/src/libfetchers/input-accessor.cc @@ -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