You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.6 KiB

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