X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=imap-send.c;h=ba72fa4b6e2fcebc74e611ed1ca200a37b9f339d;hb=7e5eb8f1834722507e2d2171a253b78b1d924458;hp=ea769a960a213249ecf2e2dde645f1f5e98cd761;hpb=c6eba1d5b2fdabda46158a01a80bea2a01ef6016;p=git.git diff --git a/imap-send.c b/imap-send.c index ea769a960..ba72fa4b6 100644 --- a/imap-send.c +++ b/imap-send.c @@ -965,17 +965,13 @@ static struct store *imap_open_store(struct imap_server_conf *srvc) /* open connection to IMAP server */ if (srvc->tunnel) { - const char *argv[4]; + const char *argv[] = { srvc->tunnel, NULL }; struct child_process tunnel = {0}; imap_info("Starting tunnel '%s'... ", srvc->tunnel); - argv[0] = "sh"; - argv[1] = "-c"; - argv[2] = srvc->tunnel; - argv[3] = NULL; - tunnel.argv = argv; + tunnel.use_shell = 1; tunnel.in = -1; tunnel.out = -1; if (start_command(&tunnel))