From 99c855353f0575efb27a0e82d4b68db1f160bed6 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 10 Jun 2010 16:13:14 +0000 Subject: [PATCH] 2010-06-10 Marcus Brinkmann * engine-gpgsm.c (gpgsm_new): Translate returned achild_fds back to child_fds. --- src/ChangeLog | 3 +++ src/engine-gpgsm.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index f7aed4c6..1f98f943 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2010-06-10 Marcus Brinkmann + * engine-gpgsm.c (gpgsm_new): Translate returned achild_fds back + to child_fds. + * debug.h (TRACE_SUC6): New macro. * w32-io.c (MAX_SLAFD): New macro. (fd_table): New static variable. diff --git a/src/engine-gpgsm.c b/src/engine-gpgsm.c index 64189bf8..64be281c 100644 --- a/src/engine-gpgsm.c +++ b/src/engine-gpgsm.c @@ -351,6 +351,10 @@ gpgsm_new (void **engine, const char *file_name, const char *home_dir) err = assuan_pipe_connect (gpgsm->assuan_ctx, file_name ? file_name : _gpgme_get_gpgsm_path (), argv, achild_fds, NULL, NULL, 0); + + /* For now... */ + for (i = 0; i < 4; i++) + child_fds[i] = (int) achild_fds[i]; } /* On Windows, handles are inserted in the spawned process with