aboutsummaryrefslogtreecommitdiffstats
path: root/opts.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--opts.c28
1 files changed, 24 insertions, 4 deletions
diff --git a/opts.c b/opts.c
index 5c264dd..7805897 100644
--- a/opts.c
+++ b/opts.c
@@ -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;
}