dirplex: Added a capture option to ignore captures of the root directory.
[ashd.git] / src / dirplex / conf.c
index 84c035d..dec84b5 100644 (file)
@@ -262,6 +262,9 @@ struct config *readconfig(char *file)
            if(cf->capture != NULL)
                free(cf->capture);
            cf->capture = sstrdup(s->argv[1]);
+           cf->caproot = 1;
+           if((s->argc > 2) && strchr(s->argv[2], 'R'))
+               cf->caproot = 0;
        } else if(!strcmp(s->argv[0], "eof")) {
            break;
        } else {