Update bash 5.1 to patch level 12

OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=336
This commit is contained in:
Dr. Werner Fink 2021-11-18 10:43:17 +00:00 committed by Git OBS Bridge
parent 3c7b1f94d6
commit 4fff4534fe
5 changed files with 28 additions and 6 deletions

View File

@ -54,7 +54,7 @@
signal_is_trapped (s)
--- jobs.c
+++ jobs.c 2020-10-12 16:00:37.267184666 +0000
@@ -2221,6 +2221,15 @@ make_child (command, flags)
@@ -2223,6 +2223,15 @@ make_child (command, flags)
child process, go back and change callers who free `command' in
the child process when this returns. */
mypid = getpid ();
@ -72,7 +72,7 @@
0 because that's the file descriptor used when redirecting input,
--- sig.c
+++ sig.c 2020-10-12 16:00:37.267184666 +0000
@@ -83,10 +83,10 @@ sigset_t top_level_mask;
@@ -84,10 +84,10 @@ sigset_t top_level_mask;
#endif /* JOB_CONTROL */
/* When non-zero, we throw_to_top_level (). */

View File

@ -4,7 +4,7 @@
--- sig.c
+++ sig.c 2018-11-29 08:13:00.103944580 +0000
@@ -788,6 +788,8 @@ set_signal_handler (sig, handler)
@@ -796,6 +796,8 @@ set_signal_handler (sig, handler)
if (sig == SIGCHLD)
act.sa_flags |= SA_RESTART; /* XXX */
#endif
@ -13,7 +13,7 @@
/* Let's see if we can keep SIGWINCH from interrupting interruptible system
calls, like open(2)/read(2)/write(2) */
#if defined (SIGWINCH)
@@ -798,6 +800,10 @@ set_signal_handler (sig, handler)
@@ -806,6 +808,10 @@ set_signal_handler (sig, handler)
it to be as close to SIG_IGN as possible. */
if (sig == SIGTERM && handler == sigterm_sighandler)
act.sa_flags |= SA_RESTART; /* XXX */

BIN
bash-5.1-patches.tar.bz2 (Stored with Git LFS)

Binary file not shown.

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Thu Nov 18 10:28:52 UTC 2021 - Dr. Werner Fink <werner@suse.de>
- Update bash 5.1 to patch level 12
* Add official patch bash51-009
The bash malloc implementation of malloc_usable_size() does not follow the
specification. This can cause library functions that use it to overwrite
memory bounds checking.
* Add official patch bash51-010
If `wait -n' is interrupted by a trapped signal other than SIGINT, it does
not completely clean up state, and that can prevent subsequent calls to
`wait -n' from working correctly.
* Add official patch bash51-011
When reading a compound assignment, and running it through the parser to
split it into words, we need to save and restore any alias we're currently
expanding.
* Add official patch bash51-012
There is a possible race condition that arises when a child process receives
a signal trapped by the parent before it can reset the signal dispositions.
The child process is not supposed to trap the signal in this circumstance.
-------------------------------------------------------------------
Fri Oct 22 09:28:06 UTC 2021 - Stefan Schubert <schubi@suse.de>

View File

@ -139,6 +139,7 @@ Requires: bash = %{version}
%description sh
Use bash as /bin/sh implementation.
%endif
%package devel
Summary: Include Files mandatory for Development of bash loadable builtins
Group: Development/Languages/C and C++