]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/bash/bash50-007
Merge branch 'next'
[ipfire-2.x.git] / src / patches / bash / bash50-007
CommitLineData
415fb8b5
PM
1 BASH PATCH REPORT
2 =================
3
4Bash-Release: 5.0
5Patch-ID: bash50-007
6
7Bug-Reported-by: Grisha Levit <grishalevit@gmail.com>
8Bug-Reference-ID: <CAMu=BroHapG1AS3xB5SQaCX2XKu=-E2Ob9uW6LNuHvd=YohrDw@mail.gmail.com>
9Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2019-02/msg00067.html
10
11Bug-Description:
12
13Running `exec' when job control was disabled, even temporarily, but after it
14had been initialized, could leave the terminal in the wrong process group for
15the executed process.
16
17Patch (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_ */