nix-daemon: Don't set untrusted-* settings

These are no longer used anywhere.
This commit is contained in:
Eelco Dolstra 2017-04-14 11:59:51 +02:00
parent 1673c373c9
commit 01dcdfcf33
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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());
}