Range matching function was returning 0 instead of no_match
on failed match, causing all input to match ranges.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
val = strtoll (str, &endptr, 10);
if (*endptr != '\0')
- return 0;
+ return no_match;
if (val < token->min || val > token->max)
return no_match;
}
#define VARIABLE_ALPHABET \
-"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890:"
+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890:/."
static enum match_type
match_variable (struct cmd_token *token, const char *word)