From: Wayne Davison Date: Sun, 23 Jan 2005 01:25:36 +0000 (+0000) Subject: When an option defined with POPT_ARG_VAL is being refused, we must X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e57211c544a0171e54cb6e1ccf30355c060a68a3 When an option defined with POPT_ARG_VAL is being refused, we must change it to POPT_ARG_NONE or it won't be refused. --- 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)