bash51-008 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 5.1
  4. Patch-ID: bash51-008
  5. Bug-Reported-by: Michael Felt <aixtools@gmail.com>
  6. Bug-Reference-ID: <b82d9a2f-5d8a-ffb2-4115-420c09272da5@felt.demon.nl>
  7. Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2021-03/msg00028.html
  8. Bug-Description:
  9. Process substitution FIFOs opened by child processes as targets of redirections
  10. were not removed appropriately, leaving remnants in the file system.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-5.1-patched/execute_cmd.c 2020-10-12 10:16:13.000000000 -0400
  13. --- execute_cmd.c 2021-05-04 11:12:39.000000000 -0400
  14. ***************
  15. *** 5557,5565 ****
  16. /* Try to remove named pipes that may have been created as the
  17. result of redirections. */
  18. ! unlink_fifo_list ();
  19. #endif /* PROCESS_SUBSTITUTION */
  20. exit (EXECUTION_FAILURE);
  21. }
  22. if (async)
  23. interactive = old_interactive;
  24. --- 5557,5571 ----
  25. /* Try to remove named pipes that may have been created as the
  26. result of redirections. */
  27. ! unlink_all_fifos ();
  28. #endif /* PROCESS_SUBSTITUTION */
  29. exit (EXECUTION_FAILURE);
  30. }
  31. + #if defined (PROCESS_SUBSTITUTION) && !defined (HAVE_DEV_FD)
  32. + /* This should only contain FIFOs created as part of redirection
  33. + expansion. */
  34. + unlink_all_fifos ();
  35. + #endif
  36. +
  37. if (async)
  38. interactive = old_interactive;
  39. *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
  40. --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
  41. ***************
  42. *** 26,30 ****
  43. looks for to find the patch level (for the sccs version string). */
  44. ! #define PATCHLEVEL 7
  45. #endif /* _PATCHLEVEL_H_ */
  46. --- 26,30 ----
  47. looks for to find the patch level (for the sccs version string). */
  48. ! #define PATCHLEVEL 8
  49. #endif /* _PATCHLEVEL_H_ */