mailfs: try to use the right version of stunnel

R=rsc
http://codereview.appspot.com/4876044
This commit is contained in:
Fazlul Shahriar 2011-08-16 15:50:48 -04:00 committed by Russ Cox
parent 974b0ed330
commit dcdc3af143

View file

@ -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);