diff options
author | David Shaw <[email protected]> | 2002-09-04 02:48:47 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-09-04 02:48:47 +0000 |
commit | 8dccf882f72d5036bec2b8277e54779bcd71ce0c (patch) | |
tree | 3d8f268d161308fc69349a5aff782d251a659d4e | |
parent | new test certs and messages (diff) | |
download | gnupg-8dccf882f72d5036bec2b8277e54779bcd71ce0c.tar.gz gnupg-8dccf882f72d5036bec2b8277e54779bcd71ce0c.zip |
* mainproc.c (print_pkenc_list): Don't increment the error counter when
printing the list of keys a message was encrypted to. This would make gpg
give a non-zero exit code even for completely valid messages if the
message was encrypted to more than one key that the user owned.
-rw-r--r-- | g10/ChangeLog | 8 | ||||
-rw-r--r-- | g10/mainproc.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog index 595dc4012..2945f7400 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,11 @@ +2002-09-03 David Shaw <[email protected]> + + * mainproc.c (print_pkenc_list): Don't increment the error counter + when printing the list of keys a message was encrypted to. This + would make gpg give a non-zero exit code even for completely valid + messages if the message was encrypted to more than one key that + the user owned. + 2002-09-02 Werner Koch <[email protected]> * g10.c (main): Try to set a default character set. Print the diff --git a/g10/mainproc.c b/g10/mainproc.c index 38aaac0d9..cea88994b 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -431,7 +431,7 @@ print_pkenc_list( struct kidlist_item *list, int failed ) } } else if (list->reason) - log_error(_("public key decryption failed: %s\n"), + log_info(_("public key decryption failed: %s\n"), g10_errstr(list->reason)); } } |