core, w32: Add hack to translate diag logger-fd
authorAndre Heinecke <aheinecke@gnupg.org>
Mon, 25 Mar 2019 13:56:37 +0000 (14:56 +0100)
committerAndre Heinecke <aheinecke@gnupg.org>
Mon, 25 Mar 2019 13:56:37 +0000 (14:56 +0100)
commit129def87b262241483ba3a8b6771ad6d07c2e3be
treea9683288701777c0122a721874c18386b2fcc037
parent47369569e23482bdd24a136b071192352b1d1347
core, w32: Add hack to translate diag logger-fd

* src/assuan-support.c (my_spawn): Add hack to
mark the logger fd for w32spawn translation.

--
The w32 spawn code needs to modify argv with
an updated fd that matches the real id
in the spawned process.

It uses spawn_fd_item_s.arg_loc for that.
We hack it here so that the arg_loc is set
for gpgsm's logger-fd without changing
the assuan API.

GnuPG-Bug-Id: T4426
src/assuan-support.c