diff options
author | Werner Koch <[email protected]> | 2006-02-14 10:17:57 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2006-02-14 10:17:57 +0000 |
commit | 966cd80d886e0ff93889ea7074a61596f4356cd1 (patch) | |
tree | 7671827d9e2ebf36d5bd377d4a2e967c3c984916 /g10/verify.c | |
parent | Lock random seed file (diff) | |
download | gnupg-966cd80d886e0ff93889ea7074a61596f4356cd1.tar.gz gnupg-966cd80d886e0ff93889ea7074a61596f4356cd1.zip |
Fixed a wrong return code with gpg --verify
Diffstat (limited to '')
-rw-r--r-- | g10/verify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/verify.c b/g10/verify.c index 64c4b908f..941481aac 100644 --- a/g10/verify.c +++ b/g10/verify.c @@ -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") ); |