forked from lix-project/lix
* Oops! In daemon mode, we can't run as root either if build-users is empty.
This commit is contained in:
parent
99655245ae
commit
8d1854c3f1
|
@ -365,9 +365,9 @@ static void processConnection()
|
|||
try {
|
||||
|
||||
/* Prevent users from doing something very dangerous. */
|
||||
if (setuidMode && geteuid() == 0 &&
|
||||
if (geteuid() == 0 &&
|
||||
querySetting("build-users", Strings()).size() == 0)
|
||||
throw Error("if you run `nix-worker' setuid root, then you MUST set `build-users'!");
|
||||
throw Error("if you run `nix-worker' as root, then you MUST set `build-users'!");
|
||||
|
||||
/* Open the store. */
|
||||
store = boost::shared_ptr<StoreAPI>(new LocalStore(true));
|
||||
|
|
Loading…
Reference in a new issue