about summary refs log tree commit diff
path: root/src/nix-worker
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-06T20·18+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-06T20·18+0000
commitef281b93c22580c3ccbcb598e3dd734402adce39 (patch)
treec288d3eec6cb2577696c67fab19e94be2688d447 /src/nix-worker
parenta14d491f09e4f1908e916be507def744be11d1c0 (diff)
* Fix the safety check.
Diffstat (limited to 'src/nix-worker')
-rw-r--r--src/nix-worker/main.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-worker/main.cc b/src/nix-worker/main.cc
index a1e0809331d2..0be4b8e64cc4 100644
--- a/src/nix-worker/main.cc
+++ b/src/nix-worker/main.cc
@@ -374,8 +374,8 @@ static void processConnection()
 
         /* Prevent users from doing something very dangerous. */
         if (geteuid() == 0 &&
-            querySetting("build-users", Strings()).size() == 0)
-            throw Error("if you run `nix-worker' as root, then you MUST set `build-users'!");
+            querySetting("build-users-group", "") == "")
+            throw Error("if you run `nix-worker' as root, then you MUST set `build-users-group'!");
 
         /* Open the store. */
         store = boost::shared_ptr<StoreAPI>(new LocalStore(true));