Home GnuPG
Diffusion GnuPG 1e9d61fb95e4

gpgparsemail: Die on parse error, printing errno thing.

Description

gpgparsemail: Die on parse error, printing errno thing.

* tools/gpgparsemail.c (parse_message): Revert the change.
* tools/rfc822parse.c (transition_to_body): Set ERRNO.
(transition_to_header, insert_header): Likewise.

In the comment of rfc822parse_* functions, it explicitly explained
setting ERRNO on error. For parser errors, it may not have
appropriate ERRNO, in such a case, use ENOENT.

Details

Provenance
gniibeAuthored on Jun 7 2019, 6:28 AM
Parents
rG72fe8d652fce: scd: Bring back --card-timeout option as deprecated.
Branches
Unknown
Tags
Unknown