Fix runtime option to enable history logging to syslog
Resolves: #2020519
This commit is contained in:
parent
b77cd81357
commit
aee0886289
13
bash-5.0-syslog-history.patch
Normal file
13
bash-5.0-syslog-history.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/doc/bash.1 b/doc/bash.1
|
||||||
|
--- a/doc/bash.1
|
||||||
|
+++ b/doc/bash.1
|
||||||
|
@@ -9889,6 +9889,9 @@ If set, the
|
||||||
|
to find the directory containing the file supplied as an argument.
|
||||||
|
This option is enabled by default.
|
||||||
|
.TP 8
|
||||||
|
+.B syslog_history
|
||||||
|
+If set, command history is logged to syslog.
|
||||||
|
+.TP 8
|
||||||
|
.B xpg_echo
|
||||||
|
If set, the \fBecho\fP builtin expands backslash-escape sequences
|
||||||
|
by default.
|
12
bash.spec
12
bash.spec
@ -6,7 +6,7 @@
|
|||||||
Version: %{baseversion}%{patchleveltag}
|
Version: %{baseversion}%{patchleveltag}
|
||||||
Name: bash
|
Name: bash
|
||||||
Summary: The GNU Bourne Again shell
|
Summary: The GNU Bourne Again shell
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Url: https://www.gnu.org/software/bash
|
Url: https://www.gnu.org/software/bash
|
||||||
Source0: https://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz
|
Source0: https://ftp.gnu.org/gnu/bash/bash-%{baseversion}.tar.gz
|
||||||
@ -83,6 +83,10 @@ Patch126: bash-4.3-memleak-lc_all.patch
|
|||||||
# this patch disables it
|
# this patch disables it
|
||||||
Patch127: bash-4.4-no-loadable-builtins.patch
|
Patch127: bash-4.4-no-loadable-builtins.patch
|
||||||
|
|
||||||
|
# 2020519 - [Regression] Add a runtime option to enable history logging to syslog
|
||||||
|
# This option is undocumented in upstream and is documented by this patch
|
||||||
|
Patch128: bash-5.0-syslog-history.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: texinfo bison
|
BuildRequires: texinfo bison
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
@ -130,7 +134,7 @@ autoconf
|
|||||||
# Recycles pids is neccessary. When bash's last fork's pid was X
|
# Recycles pids is neccessary. When bash's last fork's pid was X
|
||||||
# and new fork's pid is also X, bash has to wait for this same pid.
|
# and new fork's pid is also X, bash has to wait for this same pid.
|
||||||
# Without Recycles pids bash will not wait.
|
# Without Recycles pids bash will not wait.
|
||||||
MFLAGS="CPPFLAGS=-D_GNU_SOURCE -DRECYCLES_PIDS -DDEFAULT_PATH_VALUE='\"/usr/local/bin:/usr/bin\"' `getconf LFS_CFLAGS`"
|
MFLAGS="CPPFLAGS=-D_GNU_SOURCE -DRECYCLES_PIDS -DDEFAULT_PATH_VALUE='\"/usr/local/bin:/usr/bin\"' `getconf LFS_CFLAGS` -DSYSLOG_HISTORY -DSYSLOG_SHOPT=0"
|
||||||
|
|
||||||
# work around missing deps in Makefiles
|
# work around missing deps in Makefiles
|
||||||
make "$MFLAGS" version.h
|
make "$MFLAGS" version.h
|
||||||
@ -314,6 +318,10 @@ end
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 05 2021 Siteshwar Vashisht <svashisht@redhat.com> - 5.1.8-4
|
||||||
|
- Fix runtime option to enable history logging to syslog
|
||||||
|
Resolves: #2020519
|
||||||
|
|
||||||
* Thu Sep 30 2021 Siteshwar Vashisht <svashisht@redhat.com> - 5.1.8-3
|
* Thu Sep 30 2021 Siteshwar Vashisht <svashisht@redhat.com> - 5.1.8-3
|
||||||
- Bump version number
|
- Bump version number
|
||||||
Resolves: #2006138
|
Resolves: #2006138
|
||||||
|
Loading…
Reference in New Issue
Block a user