mirror of
https://github.com/NixOS/nix
synced 2025-07-06 13:21:47 +02:00
* NAR archives: handle files larger than 2^32 bytes. Previously it
would just silently store only (fileSize % 2^32) bytes. * Use posix_fallocate if available when unpacking archives. * Provide a better error message when trying to unpack something that isn't a NAR archive.
This commit is contained in:
parent
7e05b8b75e
commit
77d272623f
7 changed files with 48 additions and 17 deletions
|
@ -865,7 +865,7 @@ Path LocalStore::importPath(bool requireSignature, Source & source)
|
|||
store path follows the archive data proper), and besides, we
|
||||
don't know yet whether the signature is valid. */
|
||||
Path tmpDir = createTempDir(nixStore);
|
||||
AutoDelete delTmp(tmpDir);
|
||||
AutoDelete delTmp(tmpDir); /* !!! could be GC'ed! */
|
||||
Path unpacked = tmpDir + "/unpacked";
|
||||
|
||||
restorePath(unpacked, hashAndReadSource);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue