diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-09-09 13:43:55 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-09-09 13:43:55 +0000 |
commit | 91341f7be66f2865fe4000dae05dd78f448b3ca6 (patch) | |
tree | 23ca050519a599578303e560be32a2a2d1ff8638 /rcfile_y.y | |
parent | dc688e8c7f7165d0019a56c0079df651d704664b (diff) | |
download | fetchmail-91341f7be66f2865fe4000dae05dd78f448b3ca6.tar.gz fetchmail-91341f7be66f2865fe4000dae05dd78f448b3ca6.tar.bz2 fetchmail-91341f7be66f2865fe4000dae05dd78f448b3ca6.zip |
Sunil Shetye's latest fix patch.
svn path=/trunk/; revision=3707
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -354,7 +354,7 @@ user_option : TO localnames HERE | 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 *prependdir (const char *file, const char *dir) 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); |