bash52-028.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.2
  4. Patch-ID: bash52-028
  5. Bug-Reported-by: Mark March <march@systempad.cloud>
  6. Bug-Reference-ID: <834896722.6304071.1718744118467@mail.yahoo.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2024-06/msg00122.html
  8. Bug-Description:
  9. A DEBUG trap in an asynchronous process can steal the controlling terminal
  10. away from the calling shell, causing it to exit.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-20240609/trap.c Fri May 3 12:12:38 2024
  13. --- trap.c Wed Jun 26 10:41:40 2024
  14. ***************
  15. *** 1217,1221 ****
  16. restore_pgrp_pipe (save_pipe);
  17. # endif
  18. ! if (pipeline_pgrp > 0 && ((subshell_environment & (SUBSHELL_ASYNC|SUBSHELL_PIPE)) == 0))
  19. give_terminal_to (pipeline_pgrp, 1);
  20. --- 1217,1223 ----
  21. restore_pgrp_pipe (save_pipe);
  22. # endif
  23. ! /* If the trap command gave the terminal to another process group,
  24. ! restore it. XXX - check running_in_background? */
  25. ! if (job_control && pipeline_pgrp > 0 && ((subshell_environment & (SUBSHELL_ASYNC|SUBSHELL_PIPE)) == 0))
  26. give_terminal_to (pipeline_pgrp, 1);
  27. *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  28. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  29. ***************
  30. *** 26,30 ****
  31. looks for to find the patch level (for the sccs version string). */
  32. ! #define PATCHLEVEL 27
  33. #endif /* _PATCHLEVEL_H_ */
  34. --- 26,30 ----
  35. looks for to find the patch level (for the sccs version string). */
  36. ! #define PATCHLEVEL 28
  37. #endif /* _PATCHLEVEL_H_ */