1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpgtar: Fix new --status-fd handling.

--

Fixes-commit: f84264e8acf742793c73ce78491cab61fac37051
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

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