aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgparsemail.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-06-06 00:32:58 +0000
committerNIIBE Yutaka <[email protected]>2019-06-06 00:32:58 +0000
commitc13e459ffeffb8c5387c44b3c04bb92b7111a75b (patch)
treef29b803a4e19814013b8e051623a109bde415676 /tools/gpgparsemail.c
parentsm: Print a better diagnostic for encryption certificate selection. (diff)
downloadgnupg-c13e459ffeffb8c5387c44b3c04bb92b7111a75b.tar.gz
gnupg-c13e459ffeffb8c5387c44b3c04bb92b7111a75b.zip
gpgparsemail: Die on parse error (not abort).
* tools/gpgparsemail.c (parse_message): Don't use ERRNO. * tools/rfc822parse.c (transition_to_body): Return -1. (transition_to_header, insert_header): Likewise. -- GnuPG-bug-id: 1977 Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tools/gpgparsemail.c')
-rw-r--r--tools/gpgparsemail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gpgparsemail.c b/tools/gpgparsemail.c
index b12209755..c5f4e6cd0 100644
--- a/tools/gpgparsemail.c
+++ b/tools/gpgparsemail.c
@@ -654,7 +654,7 @@ parse_message (FILE *fp)
if (rfc822parse_insert (msg, line, length))
- die ("parser failed: %s", strerror (errno));
+ die ("parser failed");
if (info.hashing)
{