summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-12-19 09:34:47 +0100
committerLudovic Courtès <ludo@gnu.org>2025-12-22 15:10:52 +0100
commit0ac2a0fd1813fb5c04b22f6443d8f8a96d3c9645 (patch)
tree045d39546054363d7376f4d44151cce005a35fd8 /gnu
parent5d6dfd8981ac9ab65012de0e9a9ed26301e5b8fd (diff)
authenticate: Report failure to load keys to the daemon.
Previously, when failing to load a signing key, ‘guix authenticate’ would print a backtrace and exit with a non-zero code. That, in turn, would lead the guix-daemon child process to crash with: nix/libutil/serialise.cc:15: virtual nix::BufferedSink::~BufferedSink(): Assertion `!bufPos' failed. This patch fixes it by reporting the error to the daemon as was intended. * guix/scripts/authenticate.scm (guix-authenticate): Arrange to call ‘load-key-pair’ from within ‘with-reply’. * tests/guix-authenticate.sh: Test it. Fixes: guix/guix#4928 Reported-by: Rutherther <rutherther@ditigal.xyz> Change-Id: I8654ad6fdfbe18c55e1e85647d0c49f408d0574a Signed-off-by: Ludovic Courtès <ludo@gnu.org> Merges: #4961
Diffstat (limited to 'gnu')
0 files changed, 0 insertions, 0 deletions