diff -Naur fetchmail-5.9.14.orig/options.c fetchmail-5.9.14/options.c --- fetchmail-5.9.14.orig/options.c Wed Sep 4 19:40:43 2002 +++ fetchmail-5.9.14/options.c Fri Sep 6 18:35:08 2002 @@ -594,7 +594,7 @@ break; case LA_SSLCERTPATH: - ctl->sslcertpath = xstrdup(optarg); + ctl->sslcertpath = prependdir(optarg, currentwd); break; case LA_SSLFINGERPRINT: diff -Naur fetchmail-5.9.14.orig/rcfile_y.y fetchmail-5.9.14/rcfile_y.y --- fetchmail-5.9.14.orig/rcfile_y.y Wed Sep 4 19:40:43 2002 +++ fetchmail-5.9.14/rcfile_y.y Fri Sep 6 18:35:08 2002 @@ -354,7 +354,7 @@ | SSLCERT STRING {current.sslcert = prependdir ($2, rcfiledir);} | SSLPROTO STRING {current.sslproto = xstrdup($2);} | SSLCERTCK {current.sslcertck = FLAG_TRUE;} - | SSLCERTPATH STRING {current.sslcertpath = xstrdup($2);} + | SSLCERTPATH STRING {current.sslcertpath = prependdir($2, rcfiledir);} | SSLFINGERPRINT STRING {current.sslfingerprint = xstrdup($2);} | NO KEEP {current.keep = FLAG_FALSE;} @@ -579,6 +579,7 @@ char *newfile; if (!file[0] || /* null path */ file[0] == '/' || /* absolute path */ + strcmp(file, "-") == 0 || /* stdin/stdout */ !dir[0]) /* we don't HAVE_GETCWD */ return xstrdup (file); newfile = xmalloc (strlen (dir) + 1 + strlen (file) + 1);