aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/exechelp-w32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/exechelp-w32.c b/common/exechelp-w32.c
index 3ddff8ee5..11bcea78a 100644
--- a/common/exechelp-w32.c
+++ b/common/exechelp-w32.c
@@ -300,7 +300,7 @@ do_create_pipe (int filedes[2], int inherit_idx)
err = gpg_error (GPG_ERR_GENERAL);
if (!create_inheritable_pipe (fds, inherit_idx))
{
- filedes[0] = _open_osfhandle (handle_to_fd (fds[0]), 0);
+ filedes[0] = _open_osfhandle (handle_to_fd (fds[0]), O_RDONLY);
if (filedes[0] == -1)
{
log_error ("failed to translate osfhandle %p\n", fds[0]);
@@ -308,7 +308,7 @@ do_create_pipe (int filedes[2], int inherit_idx)
}
else
{
- filedes[1] = _open_osfhandle (handle_to_fd (fds[1]), 1);
+ filedes[1] = _open_osfhandle (handle_to_fd (fds[1]), O_APPEND);
if (filedes[1] == -1)
{
log_error ("failed to translate osfhandle %p\n", fds[1]);