mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* progress.c (handle_progress)
* sign.c (write_plaintext_packet) * encode.c (encode_simple,encode_crypt): Make sure that a filename of "-" is considered to be stdin so that iobuf_get_filelength won't get called. This fixes bug 156 reported by Gregery Barton.
This commit is contained in:
parent
0048ebcbae
commit
d0573d3db6
4 changed files with 18 additions and 6 deletions
|
@ -93,7 +93,7 @@ handle_progress (progress_filter_context_t *pfx, IOBUF inp, const char *name)
|
|||
if (!is_status_enabled ())
|
||||
return;
|
||||
|
||||
if (name)
|
||||
if (name && *name && !(*name == '-' && !name[1]))
|
||||
filesize = iobuf_get_filelength (inp);
|
||||
else if (opt.set_filesize)
|
||||
filesize = opt.set_filesize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue