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