From 373541104b745f58a5d6eaba81444cf1ccb0e595 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 18 Jan 2017 08:40:50 +0000 Subject: options_match needs to explicitly check for user options. --- options.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'options.c') diff --git a/options.c b/options.c index 9c260e26..0375c0a4 100644 --- a/options.c +++ b/options.c @@ -403,6 +403,12 @@ options_match(const char *s, int *idx, int* ambiguous) name = options_parse(s, idx); namelen = strlen(name); + *idx = -1; + if (*name == '@') { + *ambiguous = 0; + return (xstrdup(name)); + } + found = NULL; for (oe = options_table; oe->name != NULL; oe++) { if (strcmp(oe->name, name) == 0) { -- cgit v1.2.3