ntfsprogs: obsoleted
[openwrt/svn-archive/packages.git] / utils / bash / patches / 104-upstream-bash42-004.patch
1 BASH PATCH REPORT
2 =================
3
4 Bash-Release: 4.2
5 Patch-ID: bash42-004
6
7 Bug-Reported-by: Mike Frysinger <vapier@gentoo.org>
8 Bug-Reference-ID: <201102182106.17834.vapier@gentoo.org>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-02/msg00222.html
10
11 Bug-Description:
12
13 When used in contexts where word splitting and quote removal were not
14 performed, such as pattern removal or pattern substitution, empty strings
15 (either literal or resulting from quoted variables that were unset or
16 null) were not matched correctly, resulting in failure.
17
18 Patch (apply with `patch -p0'):
19
20 --- a/subst.c
21 +++ b/subst.c
22 @@ -3373,7 +3373,7 @@ expand_string_for_rhs (string, quoted, d
23 if (string == 0 || *string == '\0')
24 return (WORD_LIST *)NULL;
25
26 - td.flags = 0;
27 + td.flags = W_NOSPLIT2; /* no splitting, remove "" and '' */
28 td.word = string;
29 tresult = call_expand_word_internal (&td, quoted, 1, dollar_at_p, has_dollar_at);
30 return (tresult);
31 --- a/patchlevel.h
32 +++ b/patchlevel.h
33 @@ -25,6 +25,6 @@
34 regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
35 looks for to find the patch level (for the sccs version string). */
36
37 -#define PATCHLEVEL 3
38 +#define PATCHLEVEL 4
39
40 #endif /* _PATCHLEVEL_H_ */