aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-03-20 22:04:25 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-03-20 22:04:25 +0000
commit803cb6e3b9c0719add9a977e76ab3fadb78858f0 (patch)
tree9585b01a088315c72c86a826093fb35734559351 /src
parenta8ea4cbcc8337e0fd4d423201794891fdf6e8677 (diff)
* Override the setuid helper using NIX_SETUID_HELPER.
Diffstat (limited to 'src')
-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 90ebeaa79..7009876f1 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;