projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1518971
)
yaz_filepath_resolve: path search for abs fname
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 8 Sep 2011 06:43:31 +0000
(08:43 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 8 Sep 2011 06:43:31 +0000
(08:43 +0200)
If fname is absolute, the path is not searched.
src/tpath.c
patch
|
blob
|
history
diff --git
a/src/tpath.c
b/src/tpath.c
index
b802c98
..
d020e76
100644
(file)
--- 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;