diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-07 16:40:41 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-07 16:40:41 +0000 |
commit | a82d80ddeb6f68ff136124dfb591a404bb195ea3 (patch) | |
tree | b40ce775db3ae90451637f3e61ae4a5fb5ec3ccf /src/nix-setuid-helper | |
parent | f76fdb6d42a1b539fcf0b77d8efc5262283a19ea (diff) |
* Move setuidCleanup() to libutil.
Diffstat (limited to 'src/nix-setuid-helper')
-rw-r--r-- | src/nix-setuid-helper/main.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nix-setuid-helper/main.cc b/src/nix-setuid-helper/main.cc index dc0b2cd6c..26cdc73b7 100644 --- a/src/nix-setuid-helper/main.cc +++ b/src/nix-setuid-helper/main.cc @@ -12,11 +12,12 @@ #include "util.hh" -#include "../libmain/setuid-common.hh" - using namespace nix; +extern char * * environ; + + /* Recursively change the ownership of `path' to user `uidTo' and group `gidTo'. `path' must currently be owned by user `uidFrom', or, if `uidFrom' is -1, by group `gidFrom'. */ |