dirplex: Inverted the default root capture behaviour and changed its flag.
[ashd.git] / src / dirplex / conf.c
index 95f643a..76624a7 100644 (file)
@@ -266,9 +266,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;
+           cf->caproot = 0;
+           if((s->argc > 2) && strchr(s->argv[2], 'D'))
+               cf->caproot = 1;
        } else if(!strcmp(s->argv[0], "eof")) {
            break;
        } else {