bash51-003 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.1
  4. Patch-ID: bash51-003
  5. Bug-Reported-by: oguzismailuysal@gmail.com
  6. Bug-Reference-ID: <CAH7i3LpG91BnNcDtaTUm2Ph7a+PnJkuh6nAc87cVL7_38tOaMQ@mail.gmail.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00050.html
  8. Bug-Description:
  9. Bash does not put a command substitution process that is started to perform an
  10. expansion in a child process into the right process group where it can receive
  11. keyboard-generated signals.
  12. Patch (apply with `patch -p0'):
  13. *** ../bash-5.1-patched/subst.c 2020-11-16 10:33:15.000000000 -0500
  14. --- subst.c 2020-12-12 13:50:11.000000000 -0500
  15. ***************
  16. *** 6357,6362 ****
  17. #if defined (JOB_CONTROL)
  18. old_pipeline_pgrp = pipeline_pgrp;
  19. ! /* Don't reset the pipeline pgrp if we're already a subshell in a pipeline. */
  20. ! if ((subshell_environment & SUBSHELL_PIPE) == 0)
  21. pipeline_pgrp = shell_pgrp;
  22. cleanup_the_pipeline ();
  23. --- 6357,6364 ----
  24. #if defined (JOB_CONTROL)
  25. old_pipeline_pgrp = pipeline_pgrp;
  26. ! /* Don't reset the pipeline pgrp if we're already a subshell in a pipeline or
  27. ! we've already forked to run a disk command (and are expanding redirections,
  28. ! for example). */
  29. ! if ((subshell_environment & (SUBSHELL_FORK|SUBSHELL_PIPE)) == 0)
  30. pipeline_pgrp = shell_pgrp;
  31. cleanup_the_pipeline ();
  32. *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  33. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  34. ***************
  35. *** 26,30 ****
  36. looks for to find the patch level (for the sccs version string). */
  37. ! #define PATCHLEVEL 2
  38. #endif /* _PATCHLEVEL_H_ */
  39. --- 26,30 ----
  40. looks for to find the patch level (for the sccs version string). */
  41. ! #define PATCHLEVEL 3
  42. #endif /* _PATCHLEVEL_H_ */