From: Marcus Brinkmann Date: Thu, 10 Jun 2010 16:13:14 +0000 (+0000) Subject: 2010-06-10 Marcus Brinkmann X-Git-Tag: gpgme-1.3.1~55 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=99c855353f0575efb27a0e82d4b68db1f160bed6;p=gpgme.git 2010-06-10 Marcus Brinkmann * engine-gpgsm.c (gpgsm_new): Translate returned achild_fds back to child_fds. --- diff --git a/src/ChangeLog b/src/ChangeLog index f7aed4c..1f98f94 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 64189bf..64be281 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