about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/nix-daemon/nix-daemon.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index b4e753f5521f..90bfc67d8775 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -454,10 +454,8 @@ static void performOp(ref<LocalStore> store, bool trusted, unsigned int clientVe
                 string name = readString(from);
                 string value = readString(from);
                 try {
-                    if (name == "build-timeout")
+                    if (trusted || name == "build-timeout")
                         settings.set(name, value);
-                    else
-                        settings.set(trusted ? name : "untrusted-" + name, value);
                 } catch (UsageError & e) {
                     warn(e.what());
                 }