about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2008-03-20T18·15+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2008-03-20T18·15+0000
commit98968fbb63a1a049b2439bfc2a7d53e5b51471e3 (patch)
tree613133b4c1d84991e384583a8ebf00e5e85ed06f
parent2f1e2cf6326d25befc9962add29d6fe2e7246b1a (diff)
* Disable the don't-run-as-root sanity check because it breaks RPM
  builds (which are done as root...).

-rw-r--r--src/nix-worker/nix-worker.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index 5e261aa16198..4aab03fcd685 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<StoreAPI>(new LocalStore(true));