rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone
287226
			     BASH PATCH REPORT
287226
			     =================
287226
287226
Bash-Release:	4.2
287226
Patch-ID:	bash42-017
287226
287226
Bug-Reported-by:	Curtis Doty <Curtis@GreenKey.net>
287226
Bug-Reference-ID:	<20110621035324.A4F70849F59@mx1.iParadigms.net>
287226
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-06/msg00053.html
287226
287226
Bug-Description:
287226
287226
Using `read -a foo' where foo was an already-declared associative array
287226
caused the shell to die with a segmentation fault.
287226
287226
Patch (apply with `patch -p0'):
287226
287226
*** ../bash-4.2-patched/builtins/read.def	2011-01-04 11:43:36.000000000 -0500
287226
--- builtins/read.def	2011-06-21 10:31:02.000000000 -0400
287226
***************
287226
*** 643,646 ****
287226
--- 642,651 ----
287226
  	  return EXECUTION_FAILURE;	/* readonly or noassign */
287226
  	}
287226
+       if (assoc_p (var))
287226
+ 	{
287226
+           builtin_error (_("%s: cannot convert associative to indexed array"), arrayname);
287226
+ 	  xfree (input_string);
287226
+ 	  return EXECUTION_FAILURE;	/* existing associative array */
287226
+ 	}
287226
        array_flush (array_cell (var));
287226
  
287226
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
287226
--- patchlevel.h	Thu Feb 24 21:41:34 2011
287226
***************
287226
*** 26,30 ****
287226
     looks for to find the patch level (for the sccs version string). */
287226
  
287226
! #define PATCHLEVEL 16
287226
  
287226
  #endif /* _PATCHLEVEL_H_ */
287226
--- 26,30 ----
287226
     looks for to find the patch level (for the sccs version string). */
287226
  
287226
! #define PATCHLEVEL 17
287226
  
287226
  #endif /* _PATCHLEVEL_H_ */