1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

* Remove SwitchToOriginalUser, we're not going to need it anymore.

This commit is contained in:
Eelco Dolstra 2006-12-02 14:34:14 +00:00
parent 626f8ee42f
commit 9c9cdb06d0
8 changed files with 4 additions and 63 deletions

View file

@ -943,7 +943,6 @@ static void opSwitchProfile(Globals & globals,
Path profile = opArgs.front();
Path profileLink = getHomeDir() + "/.nix-profile";
SwitchToOriginalUser sw;
switchLink(profileLink, profile);
}
@ -1092,7 +1091,6 @@ static void opDefaultExpr(Globals & globals,
Path defNixExpr = absPath(opArgs.front());
Path defNixExprLink = getDefNixExprPath();
SwitchToOriginalUser sw;
switchLink(defNixExprLink, defNixExpr);
}
@ -1196,7 +1194,6 @@ void run(Strings args)
if (!op) throw UsageError("no operation specified");
if (globals.profile == "") {
SwitchToOriginalUser sw;
Path profileLink = getHomeDir() + "/.nix-profile";
globals.profile = pathExists(profileLink)
? absPath(readLink(profileLink), dirOf(profileLink))