tools: Fix use of EXCEPTS when spawning a process.

* tools/gpgtar-create.c (gpgtar_create) [HAVE_W32_SYSTEM]: Use HANDLE.
* tools/gpgtar-extract.c (gpgtar_extract) [HAVE_W32_SYSTEM]: Likewise.
* tools/gpgtar-list.c (gpgtar_list) [HAVE_W32_SYSTEM]: Likewise.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-06-26 10:17:23 +09:00
parent 87a73e8eb0
commit f0ecc07c4e
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
4 changed files with 13 additions and 1 deletions

View File

@ -648,7 +648,7 @@ int
translate_sys2libc_fdstr (const char *fdstr, int for_write)
{
gpg_error_t err;
gnupg_fd_t fd;
int fd;
err = gnupg_sys2libc_fdstr (fdstr, for_write, NULL, &fd);
if (err)

View File

@ -1228,7 +1228,11 @@ gpgtar_create (char **inpattern, const char *files_from, int null_names,
{
strlist_t arg;
ccparray_t ccp;
#ifdef HAVE_W32_SYSTEM
HANDLE except[2] = { INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE };
#else
int except[2] = { -1, -1 };
#endif
const char **argv;
/* '--encrypt' may be combined with '--symmetric', but 'encrypt'

View File

@ -384,7 +384,11 @@ gpgtar_extract (const char *filename, int decrypt)
{
strlist_t arg;
ccparray_t ccp;
#ifdef HAVE_W32_SYSTEM
HANDLE except[2] = { INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE };
#else
int except[2] = { -1, -1 };
#endif
const char **argv;
ccparray_init (&ccp, 0);

View File

@ -468,7 +468,11 @@ gpgtar_list (const char *filename, int decrypt)
{
strlist_t arg;
ccparray_t ccp;
#ifdef HAVE_W32_SYSTEM
HANDLE except[2] = { INVALID_HANDLE_VALUE, INVALID_HANDLE_VALUE };
#else
int except[2] = { -1, -1 };
#endif
const char **argv;
ccparray_init (&ccp, 0);