me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/nix
Jan Nieuwenhuizen 2e009ae7cd
daemon: Flush the sink upon 'exportPath' errors.
Prior to this change, errors such as wrong permissions on
/etc/guix/signing-key.sec would give:

  guix-daemon: nix/libutil/serialise.cc:15: virtual nix::BufferedSink::~BufferedSink(): Assertion `!bufPos' failed.

This patch correctly propagates the error to the client and thus changes
that to:

  error: build failed: file `/etc/guix/signing-key.sec' should be secret (inaccessible to everybody else)!

* nix/nix-daemon/nix-daemon.cc (performOp): Wrap 'exportPath' call in
'try' block.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2017-07-17 15:13:41 +02:00
..
boost
guix-register
libstore daemon: Report hash mismatches in a cleaner way. 2017-05-30 18:08:37 +02:00
libutil
nix-daemon daemon: Flush the sink upon 'exportPath' errors. 2017-07-17 15:13:41 +02:00
scripts list-runtime-roots: Bufferize the lsof pipe. 2017-03-08 23:42:53 +01:00
.gitignore
AUTHORS
COPYING
local.mk