mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
* Disable the don't-run-as-root sanity check because it breaks RPM
builds (which are done as root...).
This commit is contained in:
parent
2f1e2cf632
commit
98968fbb63
1 changed files with 2 additions and 0 deletions
|
@ -466,10 +466,12 @@ static void processConnection()
|
|||
/* If we can't accept clientVersion, then throw an error
|
||||
*here* (not above). */
|
||||
|
||||
#if 0
|
||||
/* Prevent users from doing something very dangerous. */
|
||||
if (geteuid() == 0 &&
|
||||
querySetting("build-users-group", "") == "")
|
||||
throw Error("if you run `nix-worker' as root, then you MUST set `build-users-group'!");
|
||||
#endif
|
||||
|
||||
/* Open the store. */
|
||||
store = boost::shared_ptr<StoreAPI>(new LocalStore(true));
|
||||
|
|
Loading…
Reference in a new issue