mailfs: try tlsclient program before stunnel
R=rsc http://codereview.appspot.com/1169043
This commit is contained in:
parent
e18f0a49f3
commit
18ee9a80f1
1 changed files with 2 additions and 1 deletions
|
|
@ -755,7 +755,8 @@ imapdial(char *server, int mode)
|
||||||
fd[1] = dup(p[0], -1);
|
fd[1] = dup(p[0], -1);
|
||||||
fd[2] = dup(2, -1);
|
fd[2] = dup(2, -1);
|
||||||
tmp = esmprint("%s:993", server);
|
tmp = esmprint("%s:993", server);
|
||||||
if(threadspawnl(fd, "/usr/sbin/stunnel", "stunnel", "-c", "-r", tmp, nil) < 0
|
if(threadspawnl(fd, "tlsclient", "tlsclient", 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){
|
&& threadspawnl(fd, "/usr/bin/stunnel", "stunnel", "-c", "-r", tmp, nil) < 0){
|
||||||
free(tmp);
|
free(tmp);
|
||||||
close(p[0]);
|
close(p[0]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue