diff options
Diffstat (limited to '')
-rw-r--r-- | opts.c | 28 |
1 files changed, 24 insertions, 4 deletions
@@ -55,17 +55,37 @@ parseopt_vendor(void *config_, char *opt, char *val) eprintf("-W option \"%s\" expected positive integer value or \"auto\"", opt); } else if (!strcmp(opt, "recursive")) { - /* TODO the default behaviour should be to not traverse across mount points, - * not to not follow symbolic links, however this should be tweakable */ - if (!val) + if (val) eprintf("-W option \"%s\" should not have an associated value", opt); config->recursive = 1; } else if (!strcmp(opt, "no-recursive")) { - if (!val) + if (val) eprintf("-W option \"%s\" should not have an associated value", opt); config->recursive = 0; + } else if (!strcmp(opt, "xdev")) { + if (val) + eprintf("-W option \"%s\" should not have an associated value", opt); + config->recursive = 1; + config->xdev = 1; + + } else if (!strcmp(opt, "no-xdev")) { + if (val) + eprintf("-W option \"%s\" should not have an associated value", opt); + config->xdev = 0; + + } else if (!strcmp(opt, "xlink")) { + if (val) + eprintf("-W option \"%s\" should not have an associated value", opt); + config->recursive = 1; + config->xlink = 1; + + } else if (!strcmp(opt, "no-xlink")) { + if (val) + eprintf("-W option \"%s\" should not have an associated value", opt); + config->xlink = 0; + } else { return 0; } |