about summary refs log tree commit diff
path: root/src/libstore/build.cc
diff options
context:
space:
mode:
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 90ebeaa79f91..7009876f1bcd 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;