branch Attitude Adjustment packages
[12.09/packages.git] / utils / bash / patches / 106-upstream-bash42-006.patch
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release:   4.2
5 Patch-ID:       bash42-006
6
7 Bug-Reported-by:        Allan McRae <allan@archlinux.org>
8 Bug-Reference-ID:       <4D6D0D0B.50908@archlinux.org>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00001.html
10
11 Bug-Description:
12
13 A problem with bash42-005 caused it to dump core if TZ was unset.
14
15 Patch (apply with `patch -p0'):
16
17 --- a/variables.c
18 +++ b/variables.c
19 @@ -3660,7 +3660,7 @@ chkexport (name)
20    SHELL_VAR *v;
21  
22    v = find_variable (name);
23 -  if (exported_p (v))
24 +  if (v && exported_p (v))
25      {
26        array_needs_making = 1;
27        maybe_make_export_env ();
28 --- a/patchlevel.h
29 +++ b/patchlevel.h
30 @@ -25,6 +25,6 @@
31     regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
32     looks for to find the patch level (for the sccs version string). */
33  
34 -#define PATCHLEVEL 5
35 +#define PATCHLEVEL 6
36  
37  #endif /* _PATCHLEVEL_H_ */