diff options
Diffstat (limited to '')
-rw-r--r-- | g10/sign.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sign.c b/g10/sign.c index 5942fa59b..c2d84459a 100644 --- a/g10/sign.c +++ b/g10/sign.c @@ -543,7 +543,7 @@ write_plaintext_packet (IOBUF out, IOBUF inp, const char *fname, int ptmode) } /* try to calculate the length of the data */ - if (fname && *fname && !(*fname=='-' && !fname[1])) { + if ( !iobuf_is_pipe_filename (fname) && fname && *fname ) { off_t tmpsize; if( !(tmpsize = iobuf_get_filelength(inp)) ) |