X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftpath.c;h=deaf6f4f150281fcd4ba4c507bf9be52bbe08412;hb=a3e65bcd3250b107397675bc65b35b5939355025;hp=b802c98033a0af6df45dfc91bfc58f9fdc85e644;hpb=cf6bf2f04ed7e376bfd9a37f7ef4ab0366f46804;p=yaz-moved-to-github.git diff --git a/src/tpath.c b/src/tpath.c index b802c98..deaf6f4 100644 --- a/src/tpath.c +++ b/src/tpath.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2011 Index Data + * Copyright (C) 1995-2012 Index Data * See the file LICENSE for details. */ /** @@ -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;