bash52-025.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.2
  4. Patch-ID: bash52-025
  5. Bug-Reported-by: Andrew Neff <andrew.neff@visionsystemsinc.com>
  6. Bug-Reference-ID: <SA1P110MB1357F68AFD51BB225019EFF48D2B9@SA1P110MB1357.NAMP110.PROD.OUTLOOK.COM>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00100.html
  8. Bug-Description:
  9. Make sure a subshell checks for and handles any terminating signals before
  10. exiting (which might have arrived after the command completed) so the parent
  11. and any EXIT trap will see the correct value for $?.
  12. Patch (apply with `patch -p0'):
  13. *** ../bash-5.2.9/execute_cmd.c 2022-11-02 10:36:54.000000000 -0400
  14. --- execute_cmd.c 2022-10-27 16:52:55.000000000 -0400
  15. ***************
  16. *** 1726,1729 ****
  17. --- 1726,1732 ----
  18. : EXECUTION_SUCCESS;
  19. + /* Check for terminating signals before we return to our caller, which we
  20. + expect to exit immediately anyway. */
  21. + CHECK_TERMSIG;
  22. /* If we were explicitly placed in a subshell with (), we need
  23. *** ../bash-5.2/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  24. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  25. ***************
  26. *** 26,30 ****
  27. looks for to find the patch level (for the sccs version string). */
  28. ! #define PATCHLEVEL 24
  29. #endif /* _PATCHLEVEL_H_ */
  30. --- 26,30 ----
  31. looks for to find the patch level (for the sccs version string). */
  32. ! #define PATCHLEVEL 25
  33. #endif /* _PATCHLEVEL_H_ */