Commit 260b113a 260b113a1e75989b4e460712f16af10d93fe19e8 by Sergey Poznyakoff

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.
1 parent bc73fc65
...@@ -207,6 +207,8 @@ find_long_option (struct mu_parseopt *po, char const *optstr, ...@@ -207,6 +207,8 @@ find_long_option (struct mu_parseopt *po, char const *optstr,
207 break; 207 break;
208 208
209 case 1: 209 case 1:
210 if (option_unalias (po, i) == option_unalias (po, ind))
211 continue;
210 if (po->po_flags & MU_PARSEOPT_IGNORE_ERRORS) 212 if (po->po_flags & MU_PARSEOPT_IGNORE_ERRORS)
211 return NULL; 213 return NULL;
212 mu_parseopt_error (po, 214 mu_parseopt_error (po,
......