aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-09-09 13:43:55 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-09-09 13:43:55 +0000
commit91341f7be66f2865fe4000dae05dd78f448b3ca6 (patch)
tree23ca050519a599578303e560be32a2a2d1ff8638 /rcfile_y.y
parentdc688e8c7f7165d0019a56c0079df651d704664b (diff)
downloadfetchmail-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.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 46b8d314..3dac325b 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -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);