From 851ac88bdeb0a760b73bc5532983752c9eefa80f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 30 Jan 2023 15:56:11 +0100 Subject: [PATCH] gpgtar: Fix new --status-fd handling. -- Fixes-commit: f84264e8acf742793c73ce78491cab61fac37051 --- tools/gpgtar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);