1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Print 'empty file' warning only with --verbose.

This commit is contained in:
Werner Koch 2009-05-11 09:20:39 +00:00
parent 23ad4bd73b
commit 750990401c
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2009-05-11 Werner Koch <wk@g10code.com>
* encode.c (encode_simple, encode_crypt): Print empty file warning
only in verbose mode. Closes bug#1039.
* sign.c (write_plaintext_packet):
2009-05-06 Werner Koch <wk@g10code.com>
* keyring.c (keyring_get_keyblock): Fix memory leak due to

View File

@ -286,7 +286,7 @@ encode_simple( const char *filename, int mode, int use_seskey )
int overflow;
if ( !(tmpsize = iobuf_get_filelength(inp, &overflow))
&& !overflow )
&& !overflow && opt.verbose)
log_info(_("WARNING: `%s' is an empty file\n"), filename );
/* We can't encode the length of very large files because
OpenPGP uses only 32 bit for file sizes. So if the the
@ -564,7 +564,7 @@ encode_crypt( const char *filename, STRLIST remusr, int use_symkey )
int overflow;
if ( !(tmpsize = iobuf_get_filelength(inp, &overflow))
&& !overflow )
&& !overflow && opt.verbose)
log_info(_("WARNING: `%s' is an empty file\n"), filename );
/* We can't encode the length of very large files because
OpenPGP uses only 32 bit for file sizes. So if the the

View File

@ -555,7 +555,7 @@ write_plaintext_packet (IOBUF out, IOBUF inp, const char *fname,
int overflow;
if( !(tmpsize = iobuf_get_filelength(inp, &overflow))
&& !overflow )
&& !overflow && opt.verbose)
log_info (_("WARNING: `%s' is an empty file\n"), fname);
/* We can't encode the length of very large files because