tmailfs: try to use the right version of stunnel - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit dcdc3af143bb85012efc42c6c91f3bc7548944eb
 (DIR) parent 974b0ed3305ecf2b8bed57726d88987ca83538eb
 (HTM) Author: Fazlul Shahriar <fshahriar@gmail.com>
       Date:   Tue, 16 Aug 2011 15:50:48 -0400
       
       mailfs: try to use the right version of stunnel
       
       R=rsc
       http://codereview.appspot.com/4876044
       
       Diffstat:
         M src/cmd/upas/nfs/imap.c             |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/upas/nfs/imap.c b/src/cmd/upas/nfs/imap.c
       t@@ -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);