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 3f9f9e8..10d501f 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)