mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
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[2] = dup(2, -1);
|
||||
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){
|
||||
free(tmp);
|
||||
close(p[0]);
|
||||
|
|
Loading…
Reference in a new issue