aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/upas
diff options
context:
space:
mode:
authorFazlul Shahriar <fshahriar@gmail.com>2011-08-16 15:50:48 -0400
committerRuss Cox <rsc@swtch.com>2011-08-16 15:50:48 -0400
commitdcdc3af143bb85012efc42c6c91f3bc7548944eb (patch)
tree9fd542aa74eb34694c6d7821fec98425310f4daa /src/cmd/upas
parent974b0ed3305ecf2b8bed57726d88987ca83538eb (diff)
downloadplan9port-dcdc3af143bb85012efc42c6c91f3bc7548944eb.tar.gz
plan9port-dcdc3af143bb85012efc42c6c91f3bc7548944eb.tar.bz2
plan9port-dcdc3af143bb85012efc42c6c91f3bc7548944eb.zip
mailfs: try to use the right version of stunnel
R=rsc http://codereview.appspot.com/4876044
Diffstat (limited to 'src/cmd/upas')
-rw-r--r--src/cmd/upas/nfs/imap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/upas/nfs/imap.c b/src/cmd/upas/nfs/imap.c
index 2af3a124..e5b8e5ca 100644
--- a/src/cmd/upas/nfs/imap.c
+++ b/src/cmd/upas/nfs/imap.c
@@ -756,6 +756,8 @@ imapdial(char *server, int mode)
fd[2] = dup(2, -1);
tmp = esmprint("%s:993", server);
if(threadspawnl(fd, "tlsclient", "tlsclient", tmp, nil) < 0
+ && threadspawnl(fd, "/usr/sbin/stunnel3", "stunnel3", "-c", "-r", tmp, nil) < 0
+ && threadspawnl(fd, "/usr/bin/stunnel3", "stunnel3", "-c", "-r", tmp, nil) < 0
&& threadspawnl(fd, "/usr/sbin/stunnel", "stunnel", "-c", "-r", tmp, nil) < 0
&& threadspawnl(fd, "/usr/bin/stunnel", "stunnel", "-c", "-r", tmp, nil) < 0){
free(tmp);