diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2019-04-21 18:45:54 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2019-04-22 08:59:43 +0200 |
commit | 1c4f74fa29203ad62ca85d4ce48fb08c85068b31 (patch) | |
tree | b2cec83e0f0d241e49dbe29c4cb3d2a43a4ea890 /source/a/bash/bash-5.0-patches/bash50-007 | |
parent | 96cf3289b02a3c1b0e5c8d757a3d1f2dfaa044a4 (diff) | |
download | current-1c4f74fa29203ad62ca85d4ce48fb08c85068b31.tar.gz current-1c4f74fa29203ad62ca85d4ce48fb08c85068b31.tar.xz |
Sun Apr 21 18:45:54 UTC 201920190421184554
a/bash-5.0.007-x86_64-1.txz: Upgraded.
d/parallel-20190422-noarch-1.txz: Upgraded.
n/NetworkManager-1.18.1-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/a/bash/bash-5.0-patches/bash50-007')
-rw-r--r-- | source/a/bash/bash-5.0-patches/bash50-007 | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/source/a/bash/bash-5.0-patches/bash50-007 b/source/a/bash/bash-5.0-patches/bash50-007 new file mode 100644 index 000000000..b9eb4150a --- /dev/null +++ b/source/a/bash/bash-5.0-patches/bash50-007 @@ -0,0 +1,62 @@ + BASH PATCH REPORT + ================= + +Bash-Release: 5.0 +Patch-ID: bash50-007 + +Bug-Reported-by: Grisha Levit <grishalevit@gmail.com> +Bug-Reference-ID: <CAMu=BroHapG1AS3xB5SQaCX2XKu=-E2Ob9uW6LNuHvd=YohrDw@mail.gmail.com> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2019-02/msg00067.html + +Bug-Description: + +Running `exec' when job control was disabled, even temporarily, but after it +had been initialized, could leave the terminal in the wrong process group for +the executed process. + +Patch (apply with `patch -p0'): + +*** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.000000000 -0500 +--- jobs.c 2019-04-12 15:15:10.000000000 -0400 +*************** +*** 4838,4850 **** + { + if (job_control) +! { +! terminate_stopped_jobs (); + +! if (original_pgrp >= 0) +! give_terminal_to (original_pgrp, 1); +! } + +! if (original_pgrp >= 0) +! setpgid (0, original_pgrp); + } + +--- 4838,4848 ---- + { + if (job_control) +! terminate_stopped_jobs (); + +! if (original_pgrp >= 0 && terminal_pgrp != original_pgrp) +! give_terminal_to (original_pgrp, 1); + +! if (original_pgrp >= 0 && setpgid (0, original_pgrp) == 0) +! shell_pgrp = original_pgrp; + } + +*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400 +--- patchlevel.h 2016-10-01 11:01:28.000000000 -0400 +*************** +*** 26,30 **** + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 6 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 ---- + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 7 + + #endif /* _PATCHLEVEL_H_ */ |