diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-04-04 18:44:19 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-04-04 18:44:19 +0000 |
| commit | 50582549473d6555e7f0537f89ded482cd01b2b5 (patch) | |
| tree | 6677af70d60a3124b7e0915722dbd8f879bd1bae /lib/libc | |
| parent | 8bb9171ccbb5f310f7386aa9ecd429b8b091135c (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/fnmatch.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/gen/fnmatch.c b/lib/libc/gen/fnmatch.c index f53963adf899..bd818cf7b4bb 100644 --- a/lib/libc/gen/fnmatch.c +++ b/lib/libc/gen/fnmatch.c @@ -187,8 +187,12 @@ rangematch(pattern, test, flags) if (flags & FNM_CASEFOLD) c2 = tolower((unsigned char)c2); - if ( __collate_range_cmp(c, test) <= 0 - && __collate_range_cmp(test, c2) <= 0 + if ( ( __collate_load_error + && c <= test && test <= c2 + ) + || ( __collate_range_cmp(c, test) <= 0 + && __collate_range_cmp(test, c2) <= 0 + ) ) ok = 1; } else if (c == test) |
