From 8df367a92dc417363f06a10f3e6da87d986d04f2 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 24 Sep 2018 11:58:40 -0500 Subject: [PATCH] nix-daemon: allow setting builders to "" by any user (untrusted) (cherry picked from commit a94a2eb1cb1c81e90a7529be5fecac27899a3442) --- src/nix-daemon/nix-daemon.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc index 644fa6681..615c1f5dc 100644 --- a/src/nix-daemon/nix-daemon.cc +++ b/src/nix-daemon/nix-daemon.cc @@ -557,7 +557,8 @@ static void performOp(TunnelLogger * logger, ref store, ; else if (trusted || name == settings.buildTimeout.name - || name == "connect-timeout") + || name == "connect-timeout" + || (name == "builders" && value == "")) settings.set(name, value); else if (setSubstituters(settings.substituters)) ;