mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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
|
@ -1,5 +1,6 @@
|
|||
/* sign.c - sign data
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002,
|
||||
* 2003 Free Software Foundation, Inc.
|
||||
*
|
||||
* This file is part of GnuPG.
|
||||
*
|
||||
|
@ -483,7 +484,7 @@ write_plaintext_packet (IOBUF out, IOBUF inp, const char *fname, int ptmode)
|
|||
}
|
||||
|
||||
/* try to calculate the length of the data */
|
||||
if (fname) {
|
||||
if (fname && *fname && !(*fname=='-' && !fname[1])) {
|
||||
if( !(filesize = iobuf_get_filelength(inp)) )
|
||||
log_info (_("WARNING: `%s' is an empty file\n"), fname);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue