diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-03-20 22:04:25 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2007-03-20 22:04:25 +0000 |
commit | 803cb6e3b9c0719add9a977e76ab3fadb78858f0 (patch) | |
tree | 9585b01a088315c72c86a826093fb35734559351 /src/libstore | |
parent | a8ea4cbcc8337e0fd4d423201794891fdf6e8677 (diff) |
* Override the setuid helper using NIX_SETUID_HELPER.
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 3 |
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; |