From 7db7f6782db37193f6ba9c2c8bac38a5bfcbb114 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 23 Jan 2012 06:59:34 +0100 Subject: [PATCH] dirplex: Correct config resolution for base directory. --- src/dirplex/conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dirplex/conf.c b/src/dirplex/conf.c index 3f9f9e8..10d501f 100644 --- 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) -- 2.11.0