]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/bash/bash50-007
core157: Ship readline
[people/pmueller/ipfire-2.x.git] / src / patches / bash / bash50-007
1 BASH PATCH REPORT
2 =================
3
4 Bash-Release: 5.0
5 Patch-ID: bash50-007
6
7 Bug-Reported-by: Grisha Levit <grishalevit@gmail.com>
8 Bug-Reference-ID: <CAMu=BroHapG1AS3xB5SQaCX2XKu=-E2Ob9uW6LNuHvd=YohrDw@mail.gmail.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2019-02/msg00067.html
10
11 Bug-Description:
12
13 Running `exec' when job control was disabled, even temporarily, but after it
14 had been initialized, could leave the terminal in the wrong process group for
15 the executed process.
16
17 Patch (apply with `patch -p0'):
18
19 *** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.000000000 -0500
20 --- jobs.c 2019-04-12 15:15:10.000000000 -0400
21 ***************
22 *** 4838,4850 ****
23 {
24 if (job_control)
25 ! {
26 ! terminate_stopped_jobs ();
27
28 ! if (original_pgrp >= 0)
29 ! give_terminal_to (original_pgrp, 1);
30 ! }
31
32 ! if (original_pgrp >= 0)
33 ! setpgid (0, original_pgrp);
34 }
35
36 --- 4838,4848 ----
37 {
38 if (job_control)
39 ! terminate_stopped_jobs ();
40
41 ! if (original_pgrp >= 0 && terminal_pgrp != original_pgrp)
42 ! give_terminal_to (original_pgrp, 1);
43
44 ! if (original_pgrp >= 0 && setpgid (0, original_pgrp) == 0)
45 ! shell_pgrp = original_pgrp;
46 }
47
48 *** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
49 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
50 ***************
51 *** 26,30 ****
52 looks for to find the patch level (for the sccs version string). */
53
54 ! #define PATCHLEVEL 6
55
56 #endif /* _PATCHLEVEL_H_ */
57 --- 26,30 ----
58 looks for to find the patch level (for the sccs version string). */
59
60 ! #define PATCHLEVEL 7
61
62 #endif /* _PATCHLEVEL_H_ */