From 91341f7be66f2865fe4000dae05dd78f448b3ca6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 9 Sep 2002 13:43:55 +0000 Subject: Sunil Shetye's latest fix patch. svn path=/trunk/; revision=3707 --- rcfile_y.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rcfile_y.y') 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); -- cgit v1.2.3