URI: 
       tmailfs: try tlsclient program before stunnel - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 18ee9a80f1a2f0e95982a90e40fd052fdae1c2c9
   DIR parent e18f0a49f386aacee21c44d21e21d5c37a0e153e
  HTML 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:
         M src/cmd/upas/nfs/imap.c             |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/src/cmd/upas/nfs/imap.c b/src/cmd/upas/nfs/imap.c
       t@@ -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]);