mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* A function to restore from a Nix archive.
* addValue() can now import any dumpable FS object.
This commit is contained in:
parent
85effedca3
commit
5f5cab0ac7
6 changed files with 293 additions and 14 deletions
|
@ -133,7 +133,8 @@ struct StdoutSink : DumpSink
|
|||
(const unsigned char * data, unsigned int len)
|
||||
{
|
||||
/* Don't use cout, it's slow as hell! */
|
||||
write(STDOUT_FILENO, (char *) data, len);
|
||||
if (write(STDOUT_FILENO, (char *) data, len) != len)
|
||||
throw SysError("writing to stdout");
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue