chiark / gitweb /
Disable all exported shell functions
[bash.git] / debian / patches / bash42-013.diff
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release:   4.2
5 Patch-ID:       bash42-013
6
7 Bug-Reported-by:        Marten Wikstrom <marten.wikstrom@keystream.se>
8 Bug-Reference-ID:       <BANLkTikKECAh94ZEX68iQvxYuPeEM_xoSQ@mail.gmail.com>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2011-05/msg00049.html
10
11 Bug-Description:
12
13 An off-by-one error caused the shell to skip over CTLNUL characters,
14 which are used internally to mark quoted null strings.  The effect
15 was to have stray 0x7f characters left after expanding words like
16 """"""""aa.
17
18 Patch (apply with `patch -p0'):
19
20 --- a/bash/patchlevel.h
21 +++ b/bash/patchlevel.h
22 @@ -25,6 +25,6 @@
23     regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
24     looks for to find the patch level (for the sccs version string). */
25  
26 -#define PATCHLEVEL 12
27 +#define PATCHLEVEL 13
28  
29  #endif /* _PATCHLEVEL_H_ */
30 --- a/bash/subst.c
31 +++ b/bash/subst.c
32 @@ -3706,7 +3706,10 @@
33             break;
34         }
35        else if (string[i] == CTLNUL)
36 -       i++;
37 +       {
38 +         i++;
39 +         continue;
40 +       }
41  
42        prev_i = i;
43        ADVANCE_CHAR (string, slen, i);