7 Bug-Reported-by: Michael Felt <aixtools@gmail.com>
8 Bug-Reference-ID: <b82d9a2f-5d8a-ffb2-4115-420c09272da5@felt.demon.nl>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2021-03/msg00028.html
13 Process substitution FIFOs opened by child processes as targets of redirections
14 were not removed appropriately, leaving remnants in the file system.
16 Patch (apply with `patch -p0'):
18 *** ../bash-5.1-patched/execute_cmd.c 2020-10-12 10:16:13.000000000 -0400
19 --- execute_cmd.c 2021-05-04 11:12:39.000000000 -0400
22 /* Try to remove named pipes that may have been created as the
23 result of redirections. */
24 ! unlink_fifo_list ();
25 #endif /* PROCESS_SUBSTITUTION */
26 exit (EXECUTION_FAILURE);
30 interactive = old_interactive;
32 /* Try to remove named pipes that may have been created as the
33 result of redirections. */
34 ! unlink_all_fifos ();
35 #endif /* PROCESS_SUBSTITUTION */
36 exit (EXECUTION_FAILURE);
39 + #if defined (PROCESS_SUBSTITUTION) && !defined (HAVE_DEV_FD)
40 + /* This should only contain FIFOs created as part of redirection
42 + unlink_all_fifos ();
46 interactive = old_interactive;
47 *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
48 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
51 looks for to find the patch level (for the sccs version string). */
53 ! #define PATCHLEVEL 7
55 #endif /* _PATCHLEVEL_H_ */
57 looks for to find the patch level (for the sccs version string). */
59 ! #define PATCHLEVEL 8
61 #endif /* _PATCHLEVEL_H_ */