mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fixed a wrong return code with gpg --verify
This commit is contained in:
parent
2410941461
commit
966cd80d88
13 changed files with 121 additions and 41 deletions
|
@ -113,7 +113,7 @@ verify_signatures( int nfiles, char **files )
|
|||
rc = proc_signature_packets( NULL, fp, sl, sigfile );
|
||||
free_strlist(sl);
|
||||
iobuf_close(fp);
|
||||
if( afx.no_openpgp_data && rc == -1 ) {
|
||||
if( (afx.no_openpgp_data && rc == -1) || rc == G10ERR_NO_DATA ) {
|
||||
log_error(_("the signature could not be verified.\n"
|
||||
"Please remember that the signature file (.sig or .asc)\n"
|
||||
"should be the first file given on the command line.\n") );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue