From: Stephan Bosch Date: Mon, 26 Feb 2018 16:15:13 +0000 (+0100) Subject: lib-program-client: remote: Initialize program_client_istream with parent FD. X-Git-Tag: 2.3.9~2083 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51abde99b8a949f45a299b75e2fdfc9e359ea0a;p=thirdparty%2Fdovecot%2Fcore.git lib-program-client: remote: Initialize program_client_istream with parent FD. This way, io_add_istream() works as expected. --- diff --git a/src/lib-program-client/program-client-remote.c b/src/lib-program-client/program-client-remote.c index 16468b97de..d2acea9888 100644 --- a/src/lib-program-client/program-client-remote.c +++ b/src/lib-program-client/program-client-remote.c @@ -195,7 +195,8 @@ program_client_istream_create(struct program_client *program_client, i_stream_seek(input, 0); - return i_stream_create(&scstream->istream, input, -1, 0); + return i_stream_create(&scstream->istream, input, + i_stream_get_fd(input), 0); } /*