guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

64/118: nix-daemon: Fix compat with older clients


From: Ludovic Courtès
Subject: 64/118: nix-daemon: Fix compat with older clients
Date: Tue, 19 May 2015 14:45:42 +0000

civodul pushed a commit to branch nix
in repository guix.

commit 8f72e702a114458e92f644160950344a7bf7166a
Author: Eelco Dolstra <address@hidden>
Date:   Thu Jul 17 15:23:31 2014 +0200

    nix-daemon: Fix compat with older clients
---
 src/nix-daemon/nix-daemon.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 265131c..ab9e4b9 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -548,7 +548,7 @@ static void performOp(bool trusted, unsigned int 
clientVersion,
         settings.set("build-max-jobs", int2String(readInt(from)));
         settings.set("build-max-silent-time", int2String(readInt(from)));
         if (GET_PROTOCOL_MINOR(clientVersion) >= 2)
-            settings.useBuildHook = readInt(from) != 0;
+            if (readInt(from) != 0) settings.useBuildHook = true;
         if (GET_PROTOCOL_MINOR(clientVersion) >= 4) {
             settings.buildVerbosity = (Verbosity) readInt(from);
             logType = (LogType) readInt(from);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]