about summary refs log tree commit diff
path: root/src/nix-store
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-store/main.cc b/src/nix-store/main.cc
index a93956ab7a27..4227f0cca32a 100644
--- a/src/nix-store/main.cc
+++ b/src/nix-store/main.cc
@@ -25,6 +25,7 @@ static bool indirectRoot = false;
 
 static Path fixPath(Path path)
 {
+    SwitchToOriginalUser sw;
     path = absPath(path);
     while (!isInStore(path)) {
         if (!isLink(path)) break;