gpgtar: Fix new --status-fd handling.

--

Fixes-commit: f84264e8ac
This commit is contained in:
Werner Koch 2023-01-30 15:56:11 +01:00
parent f84264e8ac
commit 851ac88bde
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 1 additions and 1 deletions

View File

@ -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);