aboutsummaryrefslogtreecommitdiff
path: root/src/nix-daemon
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-05 10:19:57 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-05 10:19:57 +0200
commitf02c52e3d4065cb8a264fc55eb9fa14d2d0337c8 (patch)
tree726204e200d0fa1803a21f022ef5580e4d1ecf7f /src/nix-daemon
parent988bf594215007c96903b4a646b0cf024fb8f596 (diff)
Doh
Diffstat (limited to 'src/nix-daemon')
-rw-r--r--src/nix-daemon/nix-daemon.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 77c63f1e6..69d5fd84e 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -746,10 +746,10 @@ static void daemonLoop()
Strings trustedUsers = settings.get("trusted-users", Strings({"root"}));
Strings allowedUsers = settings.get("allowed-users", Strings({"*"}));
- if (matchUser(user, group, settings.trustedUsers))
+ if (matchUser(user, group, trustedUsers))
trusted = true;
- if (!trusted && !matchUser(user, group, settings.allowedUsers))
+ if (!trusted && !matchUser(user, group, allowedUsers))
throw Error(format("user `%1%' is not allowed to connect to the Nix daemon") % user);
printMsg(lvlInfo, format((string) "accepted connection from pid %1%, user %2%"