mirror of
https://github.com/NixOS/nix
synced 2025-07-06 00:51:47 +02:00
Handle importing NARs containing files greater than 4 GiB
Also templatize readInt() to work for various integer types.
This commit is contained in:
parent
0780805246
commit
c4a40949d9
7 changed files with 84 additions and 81 deletions
|
@ -839,7 +839,7 @@ static void opServe(Strings opFlags, Strings opArgs)
|
|||
settings.maxSilentTime = readInt(in);
|
||||
settings.buildTimeout = readInt(in);
|
||||
if (GET_PROTOCOL_MINOR(clientVersion) >= 2)
|
||||
settings.maxLogSize = readInt(in);
|
||||
in >> settings.maxLogSize;
|
||||
if (GET_PROTOCOL_MINOR(clientVersion) >= 3) {
|
||||
settings.set("build-repeat", std::to_string(readInt(in)));
|
||||
settings.set("enforce-determinism", readInt(in) != 0 ? "true" : "false");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue