Displaying 1 result from an estimated 1 matches for "whitelist_mod".
Did you mean:
whitelist_mode
2020 Feb 09
3
[draft PATCH] whitelist support for refuse options
...ons(+), 32 deletions(-)
diff --git a/options.c b/options.c
index e5b0cb68..02d1b174 100644
--- a/options.c
+++ b/options.c
@@ -1133,39 +1133,101 @@ static void set_refuse_options(char *bp)
{
struct poptOption *op;
char *cp, shortname[2];
- int is_wild, found_match;
+ int is_wild, found_match, whitelist_mode, archive_whitelisted;
shortname[1] = '\0';
+ whitelist_mode = 0;
+ archive_whitelisted = 0;
+ /* We flag options for refusal by abusing the "descrip" field of
+ * struct poptOption (which we don't use) to temporarily store
+ * a refuse flag. Refused options may be un-...