1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

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

This commit is contained in:
Werner Koch 2009-05-11 09:20:57 +00:00
parent b613817269
commit 74300e64f5
3 changed files with 10 additions and 3 deletions

View file

@ -307,7 +307,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
@ -607,7 +607,7 @@ encode_crypt( const char *filename, strlist_t 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