bash44-023 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.4
  4. Patch-ID: bash44-023
  5. Bug-Reported-by: Martijn Dekker <martijn@inlv.org>
  6. Bug-Reference-ID: <5326d6b9-2625-1d32-3e6e-ad1d15462c09@inlv.org>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2016-11/msg00041.html
  8. Bug-Description:
  9. When sourcing a file from an interactive shell, setting the SIGINT handler
  10. to the default and typing ^C will cause the shell to exit.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-4.4-patched/builtins/trap.def 2016-01-25 13:32:38.000000000 -0500
  13. --- builtins/trap.def 2016-11-06 12:04:35.000000000 -0500
  14. ***************
  15. *** 99,102 ****
  16. --- 99,103 ----
  17. extern int posixly_correct, subshell_environment;
  18. + extern int sourcelevel, running_trap;
  19. int
  20. ***************
  21. *** 213,216 ****
  22. --- 214,220 ----
  23. if (interactive)
  24. set_signal_handler (SIGINT, sigint_sighandler);
  25. + /* special cases for interactive == 0 */
  26. + else if (interactive_shell && (sourcelevel||running_trap))
  27. + set_signal_handler (SIGINT, sigint_sighandler);
  28. else
  29. set_signal_handler (SIGINT, termsig_sighandler);
  30. *** ../bash-4.4/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
  31. --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
  32. ***************
  33. *** 26,30 ****
  34. looks for to find the patch level (for the sccs version string). */
  35. ! #define PATCHLEVEL 22
  36. #endif /* _PATCHLEVEL_H_ */
  37. --- 26,30 ----
  38. looks for to find the patch level (for the sccs version string). */
  39. ! #define PATCHLEVEL 23
  40. #endif /* _PATCHLEVEL_H_ */