]> git.pld-linux.org Git - packages/bash.git/blob - bash32-009
- up to 3.2.39
[packages/bash.git] / bash32-009
1                              BASH PATCH REPORT
2                              =================
3
4 Bash-Release: 3.2
5 Patch-ID: bash32-009
6
7 Bug-Reported-by:        James.M.Botte@lowes.com
8 Bug-Reference-ID:       <BA9FF90F7E5B424998F98EDA9F1F94BE01FA9853@msexchdb01.lowes.com>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2006-12/msg00000.html
10
11 Bug-Description:
12
13 When using its built-in replacement for snprintf/asprintf, bash does not
14 treat the %x, %X, and %o format specifiers as unsigned numbers.
15
16 Patch:
17
18 *** ../bash-3.2-patched/lib/sh/snprintf.c       Mon Nov 13 08:58:52 2006
19 --- lib/sh/snprintf.c   Wed Dec  6 11:15:04 2006
20 ***************
21 *** 669,673 ****
22   
23     sd = d;     /* signed for ' ' padding in base 10 */
24 !   flags = (*p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
25     if (*p->pf == 'X')
26       flags |= FL_HEXUPPER;
27 --- 674,679 ----
28   
29     sd = d;     /* signed for ' ' padding in base 10 */
30 !   flags = 0;
31 !   flags = (*p->pf == 'x' || *p->pf == 'X' || *p->pf == 'o' || *p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
32     if (*p->pf == 'X')
33       flags |= FL_HEXUPPER;
34 ***************
35 *** 739,743 ****
36   
37     sd = d;     /* signed for ' ' padding in base 10 */
38 !   flags = (*p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
39     if (*p->pf == 'X')
40       flags |= FL_HEXUPPER;
41 --- 745,749 ----
42   
43     sd = d;     /* signed for ' ' padding in base 10 */
44 !   flags = (*p->pf == 'x' || *p->pf == 'X' || *p->pf == 'o' || *p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
45     if (*p->pf == 'X')
46       flags |= FL_HEXUPPER;
47 *** ../bash-3.2/patchlevel.h    Thu Apr 13 08:31:04 2006
48 --- patchlevel.h        Mon Oct 16 14:22:54 2006
49 ***************
50 *** 26,30 ****
51      looks for to find the patch level (for the sccs version string). */
52   
53 ! #define PATCHLEVEL 8
54   
55   #endif /* _PATCHLEVEL_H_ */
56 --- 26,30 ----
57      looks for to find the patch level (for the sccs version string). */
58   
59 ! #define PATCHLEVEL 9
60   
61   #endif /* _PATCHLEVEL_H_ */
This page took 0.031253 seconds and 3 git commands to generate.