core, w32: Fix flags passing to gpgme-w32-spawn
* src/w32-io.c (_gpgme_io_spawn): Don't hardcode flags value. -- IOSPAWN_FLAG_ALLOW_SET_FG is 2 and was translated to 1. This might fix the pinentry foreground handling pass through.
This commit is contained in:
parent
5a5b0d4996
commit
f10605ffb5
@ -1724,8 +1724,8 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags,
|
|||||||
int written;
|
int written;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
if ((flags & IOSPAWN_FLAG_ALLOW_SET_FG))
|
if (flags)
|
||||||
strcpy (line, "~1 \n");
|
snprintf (line, BUFFER_MAX, "~%i \n", flags);
|
||||||
else
|
else
|
||||||
strcpy (line, "\n");
|
strcpy (line, "\n");
|
||||||
for (i = 0; fd_list[i].fd != -1; i++)
|
for (i = 0; fd_list[i].fd != -1; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user