diff options
author | Andre Heinecke <[email protected]> | 2018-02-09 15:04:54 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2018-02-09 15:11:03 +0000 |
commit | f10605ffb5cc9d457c3e432918fdfbfaf3d04185 (patch) | |
tree | 4991c4e952db16613ede06c6bbc38c8744a79105 | |
parent | cpp: Add conveniance Data::toString (diff) | |
download | gpgme-f10605ffb5cc9d457c3e432918fdfbfaf3d04185.tar.gz gpgme-f10605ffb5cc9d457c3e432918fdfbfaf3d04185.zip |
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.
-rw-r--r-- | src/w32-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32-io.c b/src/w32-io.c index eed8a004..05e11ee8 100644 --- a/src/w32-io.c +++ b/src/w32-io.c @@ -1724,8 +1724,8 @@ _gpgme_io_spawn (const char *path, char *const argv[], unsigned int flags, int written; size_t len; - if ((flags & IOSPAWN_FLAG_ALLOW_SET_FG)) - strcpy (line, "~1 \n"); + if (flags) + snprintf (line, BUFFER_MAX, "~%i \n", flags); else strcpy (line, "\n"); for (i = 0; fd_list[i].fd != -1; i++) |