about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-03-20T22·04+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-03-20T22·04+0000
commit803cb6e3b9c0719add9a977e76ab3fadb78858f0 (patch)
tree9585b01a088315c72c86a826093fb35734559351 /src/libstore/build.cc
parenta8ea4cbcc8337e0fd4d423201794891fdf6e8677 (diff)
* Override the setuid helper using NIX_SETUID_HELPER.
Diffstat (limited to 'src/libstore/build.cc')
-rw-r--r--src/libstore/build.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 90ebeaa79f..7009876f1b 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -465,7 +465,8 @@ void UserLock::release()
 static void runSetuidHelper(const string & command,
     const string & arg)
 {
-    string program = nixLibexecDir + "/nix-setuid-helper";
+    Path program = getEnv("NIX_SETUID_HELPER",
+        nixLibexecDir + "/nix-setuid-helper");
             
     /* Fork. */
     Pid pid;