aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-02-17 13:55:18 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-02-17 13:55:18 +0000
commit8a3a96dd5b009d337c0cd12b58a41c943d0aa516 (patch)
tree2c7ceb2d2ba188ee20a11c84344dad8f202dad4f /src/nix-store/main.cc
parent88273f9574fc137301b6a65669eb20f18d7a3b61 (diff)
* Switch to the calling user context for some more operations in a
setuid installation.
Diffstat (limited to 'src/nix-store/main.cc')
-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 a93956ab7..4227f0cca 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;