diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-01-23 17:56:25 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-01-23 17:56:25 +0200 |
commit | bab5c3eef8e7c8ef272bcff6351cd7a06c5f755b (patch) | |
tree | 731f857fba2f0f08eb29840515ff9362abffa30e | |
parent | f0d66f6b8de169bc41293e7033cb0b1f0176718d (diff) | |
download | mailutils-bab5c3eef8e7c8ef272bcff6351cd7a06c5f755b.tar.gz mailutils-bab5c3eef8e7c8ef272bcff6351cd7a06c5f755b.tar.bz2 |
Fix in IMAP wildcard matcher
* libmailutils/imapio/wildmatch.c (_wild_match): Handle %
at the end of input same way as *.
-rw-r--r-- | libmailutils/imapio/wildmatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmailutils/imapio/wildmatch.c b/libmailutils/imapio/wildmatch.c index df9c85be9..1c24f6831 100644 --- a/libmailutils/imapio/wildmatch.c +++ b/libmailutils/imapio/wildmatch.c @@ -31,7 +31,7 @@ _wild_match (const char *pat, const char *name, char delim, int icase) { while (pat && *pat) { - if (*name == 0 && *pat != '*') + if (*name == 0 && *pat != '*' && *pat != '%') return WILD_ABORT; switch (*pat) { |