ntfsprogs: obsoleted
[packages.git] / utils / bash / patches / 127-upstream-bash42-027.patch
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release:   4.2
5 Patch-ID:       bash42-027
6
7 Bug-Reported-by:        Mike Frysinger <vapier@gentoo.org>
8 Bug-Reference-ID:       <201204211243.30163.vapier@gentoo.org>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00134.html
10
11 Bug-Description:
12
13 When the `extglob' shell option is enabled, pattern substitution does not
14 work correctly in the presence of multibyte characters.
15
16 Patch (apply with `patch -p0'):
17
18 --- a/subst.c
19 +++ b/subst.c
20 @@ -4166,7 +4166,7 @@ match_wpattern (wstring, indices, wstrle
21    simple = (wpat[0] != L'\\' && wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'[');
22  #if defined (EXTENDED_GLOB)
23    if (extended_glob)
24 -    simple |= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
25 +    simple &= (wpat[1] != L'(' || (wpat[0] != L'*' && wpat[0] != L'?' && wpat[0] != L'+' && wpat[0] != L'!' && wpat[0] != L'@')); /*)*/
26  #endif
27  
28    /* If the pattern doesn't match anywhere in the string, go ahead and
29 --- a/patchlevel.h
30 +++ b/patchlevel.h
31 @@ -25,6 +25,6 @@
32     regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
33     looks for to find the patch level (for the sccs version string). */
34  
35 -#define PATCHLEVEL 26
36 +#define PATCHLEVEL 27
37  
38  #endif /* _PATCHLEVEL_H_ */