mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
* Fix the safety check.
This commit is contained in:
parent
a14d491f09
commit
ef281b93c2
1 changed files with 2 additions and 2 deletions
|
@ -374,8 +374,8 @@ static void processConnection()
|
||||||
|
|
||||||
/* Prevent users from doing something very dangerous. */
|
/* Prevent users from doing something very dangerous. */
|
||||||
if (geteuid() == 0 &&
|
if (geteuid() == 0 &&
|
||||||
querySetting("build-users", Strings()).size() == 0)
|
querySetting("build-users-group", "") == "")
|
||||||
throw Error("if you run `nix-worker' as root, then you MUST set `build-users'!");
|
throw Error("if you run `nix-worker' as root, then you MUST set `build-users-group'!");
|
||||||
|
|
||||||
/* Open the store. */
|
/* Open the store. */
|
||||||
store = boost::shared_ptr<StoreAPI>(new LocalStore(true));
|
store = boost::shared_ptr<StoreAPI>(new LocalStore(true));
|
||||||
|
|
Loading…
Reference in a new issue