diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-05 10:19:57 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-05-11 17:22:33 +0200 |
commit | 1820845c44c8cbe1121e78d5f16e7778532477f6 (patch) | |
tree | 5a9c28210215c71173f826127383a26f95f5df95 /nix/nix-daemon | |
parent | e9070bf4226b225a0b42798b20ea3947abf58a6f (diff) | |
download | guix-1820845c44c8cbe1121e78d5f16e7778532477f6.tar.gz |
Doh
Diffstat (limited to 'nix/nix-daemon')
-rw-r--r-- | nix/nix-daemon/nix-daemon.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/nix-daemon/nix-daemon.cc b/nix/nix-daemon/nix-daemon.cc index 422c7f67b3..88edb0425d 100644 --- a/nix/nix-daemon/nix-daemon.cc +++ b/nix/nix-daemon/nix-daemon.cc @@ -885,10 +885,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%" |