Dolda2000 GitWeb
/
ashd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f126375
)
dirplex: Correct config resolution for base directory.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 23 Jan 2012 05:59:34 +0000
(06:59 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 23 Jan 2012 05:59:34 +0000
(06:59 +0100)
src/dirplex/conf.c
patch
|
blob
|
blame
|
history
diff --git
a/src/dirplex/conf.c
b/src/dirplex/conf.c
index
3f9f9e8
..
10d501f
100644
(file)
--- a/
src/dirplex/conf.c
+++ b/
src/dirplex/conf.c
@@
-329,6
+329,8
@@
struct config **getconfigs(char *file)
if(ret != NULL)
free(ret);
bufinit(buf);
+ if(!strncmp(file, "./", 2))
+ file += 2;
tmp = sstrdup(file);
while(1) {
if((p = strrchr(tmp, '/')) == NULL)