about summary refs log tree commit diff
path: root/src/nix-setuid-helper
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-07T16·40+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-07T16·40+0000
commita82d80ddeb6f68ff136124dfb591a404bb195ea3 (patch)
treeb40ce775db3ae90451637f3e61ae4a5fb5ec3ccf /src/nix-setuid-helper
parentf76fdb6d42a1b539fcf0b77d8efc5262283a19ea (diff)
* Move setuidCleanup() to libutil.
Diffstat (limited to 'src/nix-setuid-helper')
-rw-r--r--src/nix-setuid-helper/main.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nix-setuid-helper/main.cc b/src/nix-setuid-helper/main.cc
index dc0b2cd6cbd5..26cdc73b7911 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'. */