From 056fa3541bf6ba6bce23b5c6c04400a2aa9bede8 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 23 Jul 2019 07:47:50 +0200 Subject: [PATCH] Better diagnostic message when the trusted section is missing Fixes #59 --- src/minisign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/minisign.c b/src/minisign.c index f36f5f0..f2e2d57 100644 --- a/src/minisign.c +++ b/src/minisign.c @@ -186,7 +186,7 @@ sig_load(const char *sig_file, unsigned char global_sig[crypto_sign_BYTES], } trim(sig_s); if (fgets(trusted_comment, (int) trusted_comment_maxlen, fp) == NULL) { - exit_err(sig_file); + exit_msg("Trusted comment not present"); } if (strncmp(trusted_comment, TRUSTED_COMMENT_PREFIX, (sizeof TRUSTED_COMMENT_PREFIX) - 1U) != 0) {