diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-10-11 18:02:33 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-10-11 18:04:25 +0300 |
commit | 260b113a1e75989b4e460712f16af10d93fe19e8 (patch) | |
tree | d551d8eec8940baf5d3f779cdb903b8448bdd54b | |
parent | bc73fc65600b6021dfe7a9fa1fba7e9b823993e2 (diff) | |
download | mailutils-260b113a1e75989b4e460712f16af10d93fe19e8.tar.gz mailutils-260b113a1e75989b4e460712f16af10d93fe19e8.tar.bz2 |
Bugfix
* libmailutils/opt/opt.c (find_long_option): Don't mark ambiguity
if the matching option unaliases to the same option as the found one.
-rw-r--r-- | libmailutils/opt/opt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmailutils/opt/opt.c b/libmailutils/opt/opt.c index ae269db0d..37c22ab4e 100644 --- a/libmailutils/opt/opt.c +++ b/libmailutils/opt/opt.c @@ -207,6 +207,8 @@ find_long_option (struct mu_parseopt *po, char const *optstr, break; case 1: + if (option_unalias (po, i) == option_unalias (po, ind)) + continue; if (po->po_flags & MU_PARSEOPT_IGNORE_ERRORS) return NULL; mu_parseopt_error (po, |