bash51-006 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.1
  4. Patch-ID: bash51-006
  5. Bug-Reported-by: oguzismailuysal@gmail.com
  6. Bug-Reference-ID: <CAH7i3LoY7C+pV_yG2LxwPNtAw3kiRkxmB4KcL1dTsih0u2BdKA@mail.gmail.com>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2020-12/msg00108.html
  8. Bug-Description:
  9. Make sure child processes forked to run command substitutions are in the
  10. proper process group.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-5.1-patched/subst.c 2020-12-16 17:01:32.000000000 -0500
  13. --- subst.c 2020-12-25 19:20:25.000000000 -0500
  14. ***************
  15. *** 6413,6416 ****
  16. --- 6413,6423 ----
  17. interactive = 0;
  18. + #if defined (JOB_CONTROL)
  19. + /* Invariant: in child processes started to run command substitutions,
  20. + pipeline_pgrp == shell_pgrp. Other parts of the shell assume this. */
  21. + if (pipeline_pgrp > 0 && pipeline_pgrp != shell_pgrp)
  22. + shell_pgrp = pipeline_pgrp;
  23. + #endif
  24. +
  25. set_sigint_handler (); /* XXX */
  26. *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  27. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  28. ***************
  29. *** 26,30 ****
  30. looks for to find the patch level (for the sccs version string). */
  31. ! #define PATCHLEVEL 5
  32. #endif /* _PATCHLEVEL_H_ */
  33. --- 26,30 ----
  34. looks for to find the patch level (for the sccs version string). */
  35. ! #define PATCHLEVEL 6
  36. #endif /* _PATCHLEVEL_H_ */