]>
Commit | Line | Data |
---|---|---|
74aff021 AM |
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 | *** ../bash-4.2-patched/subst.c 2011-01-02 16:12:51.000000000 -0500 | |
21 | --- subst.c 2011-02-18 22:30:13.000000000 -0500 | |
22 | *************** | |
23 | *** 3373,3379 **** | |
24 | if (string == 0 || *string == '\0') | |
25 | return (WORD_LIST *)NULL; | |
26 | ||
27 | ! td.flags = 0; | |
28 | td.word = string; | |
29 | tresult = call_expand_word_internal (&td, quoted, 1, dollar_at_p, has_dollar_at); | |
30 | return (tresult); | |
31 | --- 3373,3379 ---- | |
32 | if (string == 0 || *string == '\0') | |
33 | return (WORD_LIST *)NULL; | |
34 | ||
35 | ! td.flags = W_NOSPLIT2; /* no splitting, remove "" and '' */ | |
36 | td.word = string; | |
37 | tresult = call_expand_word_internal (&td, quoted, 1, dollar_at_p, has_dollar_at); | |
38 | return (tresult); | |
39 | *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 | |
40 | --- patchlevel.h Thu Feb 24 21:41:34 2011 | |
41 | *************** | |
42 | *** 26,30 **** | |
43 | looks for to find the patch level (for the sccs version string). */ | |
44 | ||
45 | ! #define PATCHLEVEL 3 | |
46 | ||
47 | #endif /* _PATCHLEVEL_H_ */ | |
48 | --- 26,30 ---- | |
49 | looks for to find the patch level (for the sccs version string). */ | |
50 | ||
51 | ! #define PATCHLEVEL 4 | |
52 | ||
53 | #endif /* _PATCHLEVEL_H_ */ |