recipes: Preserve warnings flags appending the C flags in some (specific) recipes
[dragora.git] / patches / bash / bash51-008
blobece214f097f3138361eed3067062bfa1aa6a0c42
1                              BASH PATCH REPORT
2                              =================
4 Bash-Release:   5.1
5 Patch-ID:       bash51-008
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
11 Bug-Description:
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
20 ***************
21 *** 5557,5565 ****
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);
27         }
28   
29         if (async)
30         interactive = old_interactive;
31 --- 5557,5571 ----
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);
37         }
38   
39 + #if defined (PROCESS_SUBSTITUTION) && !defined (HAVE_DEV_FD)
40 +       /* This should only contain FIFOs created as part of redirection
41 +        expansion. */
42 +       unlink_all_fifos ();
43 + #endif
44
45         if (async)
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
49 ***************
50 *** 26,30 ****
51      looks for to find the patch level (for the sccs version string). */
52   
53 ! #define PATCHLEVEL 7
54   
55   #endif /* _PATCHLEVEL_H_ */
56 --- 26,30 ----
57      looks for to find the patch level (for the sccs version string). */
58   
59 ! #define PATCHLEVEL 8
60   
61   #endif /* _PATCHLEVEL_H_ */