CHEATSHEET.md: minor changes
[dragora.git] / patches / bash / bash44-013
blob5b919e181a0d63d2d679638a8259347dec63d9d4
1                              BASH PATCH REPORT
2                              =================
4 Bash-Release:   4.4
5 Patch-ID:       bash44-013
7 Bug-Reported-by:        Siteshwar Vashisht <svashisht@redhat.com>
8 Bug-Reference-ID:       <1508861265.9523642.1484659442561.JavaMail.zimbra@redhat.com>
9 Bug-Reference-URL:      http://lists.gnu.org/archive/html/bug-bash/2017-01/msg00026.html
11 Bug-Description:
13 If a here-document contains a command substitution, the command substitution
14 can get access to the file descriptor used to write the here-document.
16 Patch (apply with `patch -p0'):
18 *** ../bash-4.4-patched/redir.c 2016-06-02 20:22:24.000000000 -0400
19 --- redir.c     2017-01-17 13:23:40.000000000 -0500
20 ***************
21 *** 470,473 ****
22 --- 467,472 ----
23       }
24   
25 +   SET_CLOSE_ON_EXEC (fd);
26
27     errno = r = 0;              /* XXX */
28     /* write_here_document returns 0 on success, errno on failure. */
29 *** ../bash-4.4/patchlevel.h    2016-06-22 14:51:03.000000000 -0400
30 --- patchlevel.h        2016-10-01 11:01:28.000000000 -0400
31 ***************
32 *** 26,30 ****
33      looks for to find the patch level (for the sccs version string). */
34   
35 ! #define PATCHLEVEL 12
36   
37   #endif /* _PATCHLEVEL_H_ */
38 --- 26,30 ----
39      looks for to find the patch level (for the sccs version string). */
40   
41 ! #define PATCHLEVEL 13
42   
43   #endif /* _PATCHLEVEL_H_ */