From: Adam Dickmeiss Date: Thu, 8 Sep 2011 06:43:31 +0000 (+0200) Subject: yaz_filepath_resolve: path search for abs fname X-Git-Tag: v4.2.15~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=ba13392e39d4e60db21b7017babbefacd8da8e0f;p=yaz-moved-to-github.git yaz_filepath_resolve: path search for abs fname If fname is absolute, the path is not searched. --- diff --git a/src/tpath.c b/src/tpath.c index b802c98..d020e76 100644 --- a/src/tpath.c +++ b/src/tpath.c @@ -76,6 +76,8 @@ char *yaz_filepath_resolve(const char *fname, const char *path, { if (path && *path == '\0') path = 0; + if (strchr("/\\", *fname)) + path = 0; for (;;) { struct stat stat_buf;