plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 18ee9a80f1a2f0e95982a90e40fd052fdae1c2c9
parent e18f0a49f386aacee21c44d21e21d5c37a0e153e
Author: Russ Cox <rsc@swtch.com>
Date:   Tue, 11 May 2010 08:25:08 -0700

mailfs: try tlsclient program before stunnel

R=rsc
http://codereview.appspot.com/1169043

Diffstat:
Msrc/cmd/upas/nfs/imap.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cmd/upas/nfs/imap.c b/src/cmd/upas/nfs/imap.c @@ -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]);