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

* Switch to the calling user context for some more operations in a

setuid installation.
This commit is contained in:
Eelco Dolstra 2005-02-17 13:55:18 +00:00
parent 88273f9574
commit 8a3a96dd5b
2 changed files with 6 additions and 2 deletions

View file

@ -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;