aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRickard Nilsson <rickynils@gmail.com>2022-08-24 01:54:43 +0200
committerRickard Nilsson <rickynils@gmail.com>2022-08-24 01:54:43 +0200
commitc2d74569269d9642448a701aa6efe08ec0fe6f00 (patch)
tree0466b8dd84d0085a1d3a8a47a9ffc8a98027f823
parent4a0c4ca1862b83c0c759cd617950b347858e752e (diff)
Fix a misplaced parenthese in serve protocol check
This issue made it impossible for clients using a serve protocol of version <= 2.3 to use the `cmdBuildDerivation` command of servers using a protocol of version >= 2.6. The faulty version check makes the server send back build outputs that the client is not expecting.
-rw-r--r--src/nix-store/nix-store.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index b453ea1ca..23f2ad3cf 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -922,7 +922,7 @@ static void opServe(Strings opFlags, Strings opArgs)
if (GET_PROTOCOL_MINOR(clientVersion) >= 3)
out << status.timesBuilt << status.isNonDeterministic << status.startTime << status.stopTime;
- if (GET_PROTOCOL_MINOR(clientVersion >= 6)) {
+ if (GET_PROTOCOL_MINOR(clientVersion) >= 6) {
worker_proto::write(*store, out, status.builtOutputs);
}