aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env/main.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-02 14:34:14 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-02 14:34:14 +0000
commit9c9cdb06d095ea91e10be8dae3a85f06a99c51bf (patch)
tree0fc5fdc4fdc0d1493dca1681147bab6a8f5e3f86 /src/nix-env/main.cc
parent626f8ee42f0b984ebc1cbf0b39938bcb3edf3bd7 (diff)
* Remove SwitchToOriginalUser, we're not going to need it anymore.
Diffstat (limited to 'src/nix-env/main.cc')
-rw-r--r--src/nix-env/main.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index a9f343870..4f0b5eca9 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -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))