2
1

bash-4.2-007.patch 1.4 KB

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