Fix pipe transport to not use a socket-only syscall. Bug 2257
[users/jgh/exim.git] / src / src / transports / pipe.c
index 1ae5a70d99540daef5a1e08f9fe9017ad43cafc1..5470c72ded944e80fd486d6d7141f33693cff2e6 100644 (file)
@@ -566,12 +566,11 @@ const uschar *envlist = ob->environment;
 uschar *cmd, *ss;
 uschar *eol = ob->use_crlf ? US"\r\n" : US"\n";
 transport_ctx tctx = {
-  {0},
-  tblock,
-  addr,
-  ob->check_string,
-  ob->escape_string,
-  ob->options /* set at initialization time */
+  .tblock = tblock,
+  .addr = addr,
+  .check_string = ob->check_string,
+  .escape_string = ob->escape_string,
+  ob->options | topt_not_socket /* set at initialization time */
 };
 
 DEBUG(D_transport) debug_printf("%s transport entered\n", tblock->name);