about summary refs log tree commit diff
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
parenta8ea4cbcc8337e0fd4d423201794891fdf6e8677 (diff)
* Override the setuid helper using NIX_SETUID_HELPER.
-rw-r--r--doc/manual/troubleshooting.xml5
-rw-r--r--src/libstore/build.cc3
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/manual/troubleshooting.xml b/doc/manual/troubleshooting.xml
index c0add7fddadc..e1e6c08c8649 100644
--- a/doc/manual/troubleshooting.xml
+++ b/doc/manual/troubleshooting.xml
@@ -43,8 +43,9 @@ Berkeley DB error: file validpaths (meta pgno = 0) has LSN [483][34721].
 Berkeley DB error: end of log is [1][28]
 Berkeley DB error: /nix/var/nix/db/validpaths: unexpected file type or format</screen>
 
-or other weird Berkeley DB errors, and they don’t away (i.e.,
-automatic recovery doesn’t work).  This may be the case after a system crash.</para>
+or other weird Berkeley DB errors, and they don’t go away (i.e.,
+automatic recovery doesn’t work).  This may be the case after a system
+crash.</para>
 
 <para>Solution: first try to run <command>db_recover</command> and
 then <link linkend='refsec-nix-store-verify'><command>nix-store
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;