psss / rpms / bash

Forked from rpms/bash 6 years ago
Clone
Roman Rakus 888f0ff
			     BASH PATCH REPORT
Roman Rakus 888f0ff
			     =================
Roman Rakus 888f0ff
Roman Rakus 888f0ff
Bash-Release:	4.2
Roman Rakus 888f0ff
Patch-ID:	bash42-007
Roman Rakus 888f0ff
Roman Rakus 888f0ff
Bug-Reported-by:	Matthias Klose <doko@debian.org>
Roman Rakus 888f0ff
Bug-Reference-ID:	<4D6FD2AC.1010500@debian.org>
Roman Rakus 888f0ff
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00015.html
Roman Rakus 888f0ff
Roman Rakus 888f0ff
Bug-Description:
Roman Rakus 888f0ff
Roman Rakus 888f0ff
When used in contexts where word splitting and quote removal were not
Roman Rakus 888f0ff
performed, such as case statement word expansion, empty strings
Roman Rakus 888f0ff
(either literal or resulting from quoted variables that were unset or
Roman Rakus 888f0ff
null) were not expanded correctly, resulting in failure.
Roman Rakus 888f0ff
Roman Rakus 888f0ff
Patch (apply with `patch -p0'):
Roman Rakus 888f0ff
Roman Rakus 888f0ff
*** ../bash-4.2-patched/subst.c	2011-02-25 12:03:58.000000000 -0500
Roman Rakus 888f0ff
--- subst.c	2011-03-03 14:08:23.000000000 -0500
Roman Rakus 888f0ff
***************
Roman Rakus 888f0ff
*** 4609,4614 ****
Roman Rakus 888f0ff
--- 4611,4617 ----
Roman Rakus 888f0ff
    if (ifs_firstc == 0)
Roman Rakus 888f0ff
  #endif
Roman Rakus 888f0ff
      word->flags |= W_NOSPLIT;
Roman Rakus 888f0ff
+   word->flags |= W_NOSPLIT2;
Roman Rakus 888f0ff
    result = call_expand_word_internal (word, quoted, 0, (int *)NULL, (int *)NULL);
Roman Rakus 888f0ff
    expand_no_split_dollar_star = 0;
Roman Rakus 888f0ff
  
Roman Rakus 888f0ff
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
Roman Rakus 888f0ff
--- patchlevel.h	Thu Feb 24 21:41:34 2011
Roman Rakus 888f0ff
***************
Roman Rakus 888f0ff
*** 26,30 ****
Roman Rakus 888f0ff
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 888f0ff
  
Roman Rakus 888f0ff
! #define PATCHLEVEL 6
Roman Rakus 888f0ff
  
Roman Rakus 888f0ff
  #endif /* _PATCHLEVEL_H_ */
Roman Rakus 888f0ff
--- 26,30 ----
Roman Rakus 888f0ff
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 888f0ff
  
Roman Rakus 888f0ff
! #define PATCHLEVEL 7
Roman Rakus 888f0ff
  
Roman Rakus 888f0ff
  #endif /* _PATCHLEVEL_H_ */