1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

* Override the setuid helper using NIX_SETUID_HELPER.

This commit is contained in:
Eelco Dolstra 2007-03-20 22:04:25 +00:00
parent a8ea4cbcc8
commit 803cb6e3b9
2 changed files with 5 additions and 3 deletions

View file

@ -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;