X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftpath.c;h=d020e763704567bacf6efdcc86ff53d69c8415af;hb=3c287bc1d48ee6a1f300054c2cebd0ba312bd5b9;hp=b802c98033a0af6df45dfc91bfc58f9fdc85e644;hpb=cf6bf2f04ed7e376bfd9a37f7ef4ab0366f46804;p=yaz-moved-to-github.git 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;