mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
* Override the setuid helper using NIX_SETUID_HELPER.
This commit is contained in:
parent
a8ea4cbcc8
commit
803cb6e3b9
2 changed files with 5 additions and 3 deletions
|
@ -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: end of log is [1][28]
|
||||||
Berkeley DB error: /nix/var/nix/db/validpaths: unexpected file type or format</screen>
|
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.,
|
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>
|
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
|
<para>Solution: first try to run <command>db_recover</command> and
|
||||||
then <link linkend='refsec-nix-store-verify'><command>nix-store
|
then <link linkend='refsec-nix-store-verify'><command>nix-store
|
||||||
|
|
|
@ -465,7 +465,8 @@ void UserLock::release()
|
||||||
static void runSetuidHelper(const string & command,
|
static void runSetuidHelper(const string & command,
|
||||||
const string & arg)
|
const string & arg)
|
||||||
{
|
{
|
||||||
string program = nixLibexecDir + "/nix-setuid-helper";
|
Path program = getEnv("NIX_SETUID_HELPER",
|
||||||
|
nixLibexecDir + "/nix-setuid-helper");
|
||||||
|
|
||||||
/* Fork. */
|
/* Fork. */
|
||||||
Pid pid;
|
Pid pid;
|
||||||
|
|
Loading…
Reference in a new issue