From ba13392e39d4e60db21b7017babbefacd8da8e0f Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 8 Sep 2011 08:43:31 +0200 Subject: [PATCH] yaz_filepath_resolve: path search for abs fname If fname is absolute, the path is not searched. --- src/tpath.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 1.7.10.4