]> www.dolda2000.com Git - ashd.git/commitdiff
dirplex: Correct config resolution for base directory.
authorFredrik Tolf <fredrik@dolda2000.com>
Mon, 23 Jan 2012 05:59:34 +0000 (06:59 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Mon, 23 Jan 2012 05:59:34 +0000 (06:59 +0100)
src/dirplex/conf.c

index 3f9f9e88529650ae7baa167803da37a4028edc81..10d501fd351f60cb2f031ef968455b07a8c338c7 100644 (file)
@@ -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)