mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
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:
parent
87a73e8eb0
commit
f0ecc07c4e
@ -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)
|
||||
|
@ -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'
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user