diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-03-01 13:52:54 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-03-01 13:52:54 +0100 |
commit | c4a40949d945b4a3be85ad68b8cfb449843f34a6 (patch) | |
tree | 535f9679b01e677114e5ac947d7d4a7c88917cab /src/libstore/export-import.cc | |
parent | 07808052461e9534dc42f7f98e83a7b58565fd13 (diff) |
Handle importing NARs containing files greater than 4 GiB
Also templatize readInt() to work for various integer types.
Diffstat (limited to 'src/libstore/export-import.cc')
-rw-r--r-- | src/libstore/export-import.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/export-import.cc b/src/libstore/export-import.cc index c5618c826..e584ae538 100644 --- a/src/libstore/export-import.cc +++ b/src/libstore/export-import.cc @@ -86,7 +86,7 @@ Paths Store::importPaths(Source & source, std::shared_ptr<FSAccessor> accessor, { Paths res; while (true) { - unsigned long long n = readLongLong(source); + auto n = readNum<uint64_t>(source); if (n == 0) break; if (n != 1) throw Error("input doesn't look like something created by ‘nix-store --export’"); |