about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-05T17·44+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-05T17·44+0000
commit8d1854c3f19848fa6435aaa0fc688230ccc478c2 (patch)
tree4c9068f40da73c0c3cffbfb35cbb07f638216c83 /src
parent99655245ae21dd18403ce79f54199c13574da9aa (diff)
* Oops! In daemon mode, we can't run as root either if build-users is empty.
Diffstat (limited to 'src')
-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 4397697bab2f..a4372b4a56c2 100644
--- a/src/nix-worker/main.cc
+++ b/src/nix-worker/main.cc
@@ -365,9 +365,9 @@ static void processConnection()
     try {
 
         /* Prevent users from doing something very dangerous. */
-        if (setuidMode && geteuid() == 0 &&
+        if (geteuid() == 0 &&
             querySetting("build-users", Strings()).size() == 0)
-            throw Error("if you run `nix-worker' setuid root, then you MUST set `build-users'!");
+            throw Error("if you run `nix-worker' as root, then you MUST set `build-users'!");
 
         /* Open the store. */
         store = boost::shared_ptr<StoreAPI>(new LocalStore(true));