Roman Rakus 6b9ac97
			     BASH PATCH REPORT
Roman Rakus 6b9ac97
			     =================
Roman Rakus 6b9ac97
Roman Rakus 6b9ac97
Bash-Release:	4.1
Roman Rakus 6b9ac97
Patch-ID:	bash41-007
Roman Rakus 6b9ac97
Roman Rakus 6b9ac97
Bug-Reported-by:	Rob Robason <rob@robason.net>
Roman Rakus 6b9ac97
Bug-Reference-ID:	<1269513145.22336.9.camel@home.robason.homelinux.net>
Roman Rakus 6b9ac97
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2010-03/msg00089.html
Roman Rakus 6b9ac97
Roman Rakus 6b9ac97
Bug-Description:
Roman Rakus 6b9ac97
Roman Rakus 6b9ac97
A typo caused bash to not honor a precision specification in a printf
Roman Rakus 6b9ac97
format.
Roman Rakus 6b9ac97
Roman Rakus 6b9ac97
Patch (apply with `patch -p0'):
Roman Rakus 6b9ac97
Roman Rakus 6b9ac97
*** ../bash-4.1-patched/builtins/printf.def	2010-01-18 10:50:22.000000000 -0500
Roman Rakus 6b9ac97
--- builtins/printf.def	2010-03-25 09:40:56.000000000 -0400
Roman Rakus 6b9ac97
***************
Roman Rakus 6b9ac97
*** 118,122 ****
Roman Rakus 6b9ac97
        nw = vflag ? vbprintf (f, fieldwidth, func) : printf (f, fieldwidth, func); \
Roman Rakus 6b9ac97
      else if (have_precision) \
Roman Rakus 6b9ac97
!       nw = vflag ? vbprintf (f, precision, func) : printf (f, fieldwidth, func); \
Roman Rakus 6b9ac97
      else \
Roman Rakus 6b9ac97
        nw = vflag ? vbprintf (f, func) : printf (f, func); \
Roman Rakus 6b9ac97
--- 118,122 ----
Roman Rakus 6b9ac97
        nw = vflag ? vbprintf (f, fieldwidth, func) : printf (f, fieldwidth, func); \
Roman Rakus 6b9ac97
      else if (have_precision) \
Roman Rakus 6b9ac97
!       nw = vflag ? vbprintf (f, precision, func) : printf (f, precision, func); \
Roman Rakus 6b9ac97
      else \
Roman Rakus 6b9ac97
        nw = vflag ? vbprintf (f, func) : printf (f, func); \
Roman Rakus 6b9ac97
*** ../bash-4.1-patched/patchlevel.h	2009-10-01 16:39:22.000000000 -0400
Roman Rakus 6b9ac97
--- patchlevel.h	2010-01-14 09:38:08.000000000 -0500
Roman Rakus 6b9ac97
***************
Roman Rakus 6b9ac97
*** 26,30 ****
Roman Rakus 6b9ac97
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 6b9ac97
  
Roman Rakus 6b9ac97
! #define PATCHLEVEL 6
Roman Rakus 6b9ac97
  
Roman Rakus 6b9ac97
  #endif /* _PATCHLEVEL_H_ */
Roman Rakus 6b9ac97
--- 26,30 ----
Roman Rakus 6b9ac97
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 6b9ac97
  
Roman Rakus 6b9ac97
! #define PATCHLEVEL 7
Roman Rakus 6b9ac97
  
Roman Rakus 6b9ac97
  #endif /* _PATCHLEVEL_H_ */