bash51-010 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.1
  4. Patch-ID: bash51-010
  5. Bug-Reported-by: Jonas Alfredsson <jonas.alfredsson@protonmail.com>
  6. Bug-Reference-ID: <LjAfZaEuZncr2RaqhSSfcaiXdkuK6kdEYxshP3LApXbgMVQzggMGyWHO9knVkXicW2fP-ibsipJ_GZ-YaJRm96Rsozf6PgFmPsljRCtflls=@protonmail.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2021-05/msg00059.html
  8. Bug-Description:
  9. If `wait -n' is interrupted by a trapped signal other than SIGINT, it does
  10. not completely clean up state, and that can prevent subsequent calls to
  11. `wait -n' from working correctly.
  12. Patch (apply with `patch -p0'):
  13. *** ../bash-5.1-patched/builtins/wait.def 2020-12-16 17:13:12.000000000 -0500
  14. --- builtins/wait.def 2021-11-17 10:25:15.000000000 -0500
  15. ***************
  16. *** 112,116 ****
  17. WORD_LIST *list;
  18. {
  19. ! int status, code, opt, nflag, wflags;
  20. char *vname;
  21. SHELL_VAR *pidvar;
  22. --- 112,117 ----
  23. WORD_LIST *list;
  24. {
  25. ! int status, code, opt, nflag;
  26. ! volatile int wflags;
  27. char *vname;
  28. SHELL_VAR *pidvar;
  29. ***************
  30. *** 181,184 ****
  31. --- 188,193 ----
  32. status = 128 + wait_signal_received;
  33. wait_sigint_cleanup ();
  34. + if (wflags & JWAIT_WAITING)
  35. + unset_waitlist ();
  36. WAIT_RETURN (status);
  37. }
  38. *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  39. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  40. ***************
  41. *** 26,30 ****
  42. looks for to find the patch level (for the sccs version string). */
  43. ! #define PATCHLEVEL 9
  44. #endif /* _PATCHLEVEL_H_ */
  45. --- 26,30 ----
  46. looks for to find the patch level (for the sccs version string). */
  47. ! #define PATCHLEVEL 10
  48. #endif /* _PATCHLEVEL_H_ */