From ef281b93c22580c3ccbcb598e3dd734402adce39 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 6 Dec 2006 20:18:29 +0000 Subject: [PATCH] * Fix the safety check. --- src/nix-worker/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nix-worker/main.cc b/src/nix-worker/main.cc index a1e080933..0be4b8e64 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(new LocalStore(true));