recipes: networking/wget: upgraded to version 1.20.1
[dragora.git] / patches / bash / bash44-002
blob6d8baef1407b38be9f36c2d7e219e18d250726aa
1                              BASH PATCH REPORT
2                              =================
4 Bash-Release:   4.4
5 Patch-ID:       bash44-002
7 Bug-Reported-by:        Eric Pruitt <eric.pruitt@gmail.com>
8 Bug-Reference-ID:       <20160916055120.GA28272@sinister.codevat.com>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2016-09/msg00015.html
11 Bug-Description:
13 Bash-4.4 warns when discarding NUL bytes in command substitution output
14 instead of silently dropping them.  This patch changes the warnings from
15 one per NUL byte encountered to one warning per command substitution.
17 Patch (apply with `patch -p0'):
19 *** ../bash-4.4/subst.c 2016-08-30 16:46:38.000000000 -0400
20 --- subst.c     2016-09-26 10:20:19.000000000 -0400
21 ***************
22 *** 5932,5935 ****
23 --- 5933,5937 ----
24     int istring_index, istring_size, c, tflag, skip_ctlesc, skip_ctlnul;
25     ssize_t bufn;
26 +   int nullbyte;
27   
28     istring = (char *)NULL;
29 ***************
30 *** 5939,5942 ****
31 --- 5941,5946 ----
32       skip_ctlesc |= *s == CTLESC, skip_ctlnul |= *s == CTLNUL;
33   
34 +   nullbyte = 0;
35
36     /* Read the output of the command through the pipe.  This may need to be
37        changed to understand multibyte characters in the future. */
38 ***************
39 *** 5957,5961 ****
40         {
41   #if 1
42 !         internal_warning ("%s", _("command substitution: ignored null byte in input"));
43   #endif
44           continue;
45 --- 5961,5969 ----
46         {
47   #if 1
48 !         if (nullbyte == 0)
49 !           {
50 !             internal_warning ("%s", _("command substitution: ignored null byte in input"));
51 !             nullbyte = 1;
52 !           }
53   #endif
54           continue;
55 *** ../bash-4.4/patchlevel.h    2016-06-22 14:51:03.000000000 -0400
56 --- patchlevel.h        2016-10-01 11:01:28.000000000 -0400
57 ***************
58 *** 26,30 ****
59      looks for to find the patch level (for the sccs version string). */
60   
61 ! #define PATCHLEVEL 1
62   
63   #endif /* _PATCHLEVEL_H_ */
64 --- 26,30 ----
65      looks for to find the patch level (for the sccs version string). */
66   
67 ! #define PATCHLEVEL 2
68   
69   #endif /* _PATCHLEVEL_H_ */