recipes: shells/bash: Apply official patches up to level 016
[dragora.git] / patches / bash / bash51-006
blobdcabf8113b14477e0deceadcd2c4d962b5373859
1                              BASH PATCH REPORT
2                              =================
4 Bash-Release:   5.1
5 Patch-ID:       bash51-006
7 Bug-Reported-by:        oguzismailuysal@gmail.com
8 Bug-Reference-ID:       <CAH7i3LoY7C+pV_yG2LxwPNtAw3kiRkxmB4KcL1dTsih0u2BdKA@mail.gmail.com>
9 Bug-Reference-URL:      https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00108.html
11 Bug-Description:
13 Make sure child processes forked to run command substitutions are in the
14 proper process group.
16 Patch (apply with `patch -p0'):
18 *** ../bash-5.1-patched/subst.c 2020-12-16 17:01:32.000000000 -0500
19 --- subst.c     2020-12-25 19:20:25.000000000 -0500
20 ***************
21 *** 6413,6416 ****
22 --- 6413,6423 ----
23         interactive = 0;
24   
25 + #if defined (JOB_CONTROL)
26 +       /* Invariant: in child processes started to run command substitutions,
27 +        pipeline_pgrp == shell_pgrp. Other parts of the shell assume this. */
28 +       if (pipeline_pgrp > 0 && pipeline_pgrp != shell_pgrp)
29 +       shell_pgrp = pipeline_pgrp;
30 + #endif
31
32         set_sigint_handler ();  /* XXX */
33   
34 *** ../bash-5.1/patchlevel.h    2020-06-22 14:51:03.000000000 -0400
35 --- patchlevel.h        2020-10-01 11:01:28.000000000 -0400
36 ***************
37 *** 26,30 ****
38      looks for to find the patch level (for the sccs version string). */
39   
40 ! #define PATCHLEVEL 5
41   
42   #endif /* _PATCHLEVEL_H_ */
43 --- 26,30 ----
44      looks for to find the patch level (for the sccs version string). */
45   
46 ! #define PATCHLEVEL 6
47   
48   #endif /* _PATCHLEVEL_H_ */