summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2023-01-30 15:56:11 +0100
committerWerner Koch <wk@gnupg.org>2023-01-30 15:56:11 +0100
commit851ac88bdeb0a760b73bc5532983752c9eefa80f (patch)
tree534890244a9bf676434de806cfca66f8821e7b2b /tools
parentgpgtar: Emit progress status lines in create mode. (diff)
downloadgnupg2-851ac88bdeb0a760b73bc5532983752c9eefa80f.tar.xz
gnupg2-851ac88bdeb0a760b73bc5532983752c9eefa80f.zip
gpgtar: Fix new --status-fd handling.
-- Fixes-commit: f84264e8acf742793c73ce78491cab61fac37051
Diffstat (limited to 'tools')
-rw-r--r--tools/gpgtar.c2
1 files changed, 1 insertions, 1 deletions
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);