Files
rsync/lib
Andrew Tridgell ded4fb157e wildmatch: fold bracket-expression pattern chars under force_lower_case
dowild()'s literal path folds the pattern char, but the [class]/[a-z] path
compared unfolded pattern bytes against the (folded) text, so iwildmatch() was
still case-asymmetric for character classes and ranges -- e.g. a daemon
'hosts deny = [A-Z]*.EVIL.COM' failed to match a lower-case host (access-control
fail-open, same class as the literal case).  Fold p_ch for the escaped-member,
range-endpoint and plain-member comparisons; the range start (prev_ch) picks up
the folded value too.  Only active under force_lower_case (iwildmatch), so
case-sensitive wildmatch() is unchanged.

Reported-by: Leonid Bugaev
(cherry picked from commit d443e8dc93)
2026-07-20 14:18:38 +10:00
..
2020-07-11 11:39:36 -07:00
2022-03-03 17:00:57 -08:00
2020-05-24 22:50:51 -07:00
2019-03-16 09:15:49 -07:00
2006-01-02 17:46:12 +00:00