diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-02T14·34+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-02T14·34+0000 |
commit | 9c9cdb06d095ea91e10be8dae3a85f06a99c51bf (patch) | |
tree | 0fc5fdc4fdc0d1493dca1681147bab6a8f5e3f86 /src/nix-env | |
parent | 626f8ee42f0b984ebc1cbf0b39938bcb3edf3bd7 (diff) |
* Remove SwitchToOriginalUser, we're not going to need it anymore.
Diffstat (limited to 'src/nix-env')
-rw-r--r-- | src/nix-env/main.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc index a9f34387079b..4f0b5eca9024 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)) |