diff --git a/tools/gpgtar.c b/tools/gpgtar.c index 5d16b70a7..cfd760499 100644 --- a/tools/gpgtar.c +++ b/tools/gpgtar.c @@ -493,7 +493,7 @@ main (int argc, char **argv) /* Set status stream for our own use of --status-fd. The original * status fd is passed verbatim to gpg. */ - if (opt.status_fd) + if (opt.status_fd != -1) { int fd = translate_sys2libc_fd_int (opt.status_fd, 1);