aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-02-08 12:24:48 +0100
committerAmineChikhaoui <amine.chikhaoui91@gmail.com>2018-02-08 12:24:48 +0100
commit0685a6480a0056be6282826dd4a0ad9f755dcf23 (patch)
tree6d82a013e3abd7753be27e9f7dfa5a43f871cb3d
parenta56637205a0f4cfa271e16cec15e2a08f79f496d (diff)
parentf201b7733e22cc236a41093a88cc789239d994bd (diff)
Merge branch 'master' of https://github.com/NixOS/nix into parallel-xz
-rw-r--r--src/nix-daemon/nix-daemon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 0e5ff370c..d3a8ebbdd 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -994,7 +994,7 @@ static void daemonLoop(char * * argv)
if (matchUser(user, group, trustedUsers))
trusted = true;
- if ((!trusted && !matchUser(user, group, allowedUsers)) || group == "nixbld")
+ if ((!trusted && !matchUser(user, group, allowedUsers)) || group == settings.buildUsersGroup)
throw Error(format("user '%1%' is not allowed to connect to the Nix daemon") % user);
printInfo(format((string) "accepted connection from pid %1%, user %2%" + (trusted ? " (trusted)" : ""))