X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/51d4839861474ac5787f9540d99cecbaaf71aa1f..7e037c422653e58b3901188718fe910bf21ac371:/options.c diff --git a/options.c b/options.c index a54ce7c0..ddefb9b8 100644 --- a/options.c +++ b/options.c @@ -509,6 +509,8 @@ static void set_refuse_options(char *bp) break; if ((op->longName && wildmatch(bp, op->longName)) || (*shortname && wildmatch(bp, shortname))) { + if (op->argInfo == POPT_ARG_VAL) + op->argInfo = POPT_ARG_NONE; op->val = (op - long_options) + OPT_REFUSED_BASE; found_match = 1; if (!is_wild)