From 98968fbb63a1a049b2439bfc2a7d53e5b51471e3 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 20 Mar 2008 18:15:20 +0000 Subject: [PATCH] * Disable the don't-run-as-root sanity check because it breaks RPM builds (which are done as root...). --- src/nix-worker/nix-worker.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index 5e261aa16..4aab03fcd 100644 --- a/src/nix-worker/nix-worker.cc +++ b/src/nix-worker/nix-worker.cc @@ -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(new LocalStore(true));