musl/src/regex
Rich Felker ec04d122f1 fix regression in glob with literal . or .. path component
commit 8c4be3e220 was written to
preclude the GLOB_PERIOD extension from matching these directory
entries, but also precluded literal matches.

adjust the check that excludes . and .. to check whether the
GLOB_PERIOD flag is in effect, so that it cannot alter behavior in
cases governed by the standard, and also don't exclude . or .. in any
case where normal glob behavior (fnmatch's FNM_PERIOD flag) would have
included one or both of them (patterns such as ".*").

it's still not clear whether this is the preferred behavior for
GLOB_PERIOD, but at least it's clear that it can no longer break
applications which are not relying on quirks of a nonstandard feature.
2017-10-21 12:32:16 -04:00
..
fnmatch.c byte-based C locale, phase 1: multibyte character handling functions 2015-06-16 05:28:48 +00:00
glob.c fix regression in glob with literal . or .. path component 2017-10-21 12:32:16 -04:00
regcomp.c regex: fix newline matching with negated brackets 2017-03-21 12:24:23 -04:00
regerror.c add support for LC_TIME and LC_MESSAGES translations 2014-07-26 05:36:25 -04:00
regexec.c fix free of uninitialized buffer pointer on error in regexec 2017-03-14 14:18:07 -04:00
tre-mem.c
tre.h