Enable system-wide .bash_logout for login shells

Signed-off-by: Roman Rakus <rrakus@redhat.com>
This commit is contained in:
Roman Rakus 2011-02-14 20:32:56 +01:00
parent ba662065ab
commit d48de9277a
2 changed files with 21 additions and 1 deletions

12
bash-4.2-rc2-logout.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up bash-4.2-rc2/config-top.h.logout bash-4.2-rc2/config-top.h
--- bash-4.2-rc2/config-top.h.logout 2011-02-14 20:29:19.000000000 +0100
+++ bash-4.2-rc2/config-top.h 2011-02-14 20:29:30.000000000 +0100
@@ -80,7 +80,7 @@
/* #define SYS_BASHRC "/etc/bash.bashrc" */
/* System-wide .bash_logout for login shells. */
-/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
+#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
/* Define this to make non-interactive shells begun with argv[0][0] == '-'
run the startup files when not in posix mode. */

View File

@ -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: 0.1.%{beta_tag}%{?dist} Release: 0.2.%{beta_tag}%{?dist}
Group: System Environment/Shells Group: System Environment/Shells
License: GPLv3+ License: GPLv3+
Url: http://www.gnu.org/software/bash Url: http://www.gnu.org/software/bash
@ -51,6 +51,9 @@ Patch124: bash-4.1-examples.patch
# when output does not succeed due to EPIPE # when output does not succeed due to EPIPE
Patch126: bash-4.1-broken_pipe.patch Patch126: bash-4.1-broken_pipe.patch
# Enable system-wide .bash_logout for login shells
Patch127: bash-4.2-rc2-logout.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: texinfo bison BuildRequires: texinfo bison
@ -100,6 +103,8 @@ This package contains documentation files for %{name}.
%patch123 -p1 -b .nobits %patch123 -p1 -b .nobits
%patch124 -p1 -b .examples %patch124 -p1 -b .examples
%patch126 -p1 -b .broken_pipe %patch126 -p1 -b .broken_pipe
%patch127 -p1 -b .logout
echo %{version} > _distribution echo %{version} > _distribution
echo %{release} > _patchlevel echo %{release} > _patchlevel
@ -277,6 +282,9 @@ fi
#%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt #%doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
%changelog %changelog
* Mon Feb 14 2011 Roman Rakus <rrakus@redhat.com> - 4.2.0-0.2.rc2
- Enable system-wide .bash_logout for login shells
* Wed Feb 09 2011 Roman Rakus <rrakus@redhat.com> - 4.2.0-0.1.rc2 * Wed Feb 09 2011 Roman Rakus <rrakus@redhat.com> - 4.2.0-0.1.rc2
- Update to bash-4.2-rc2 - Update to bash-4.2-rc2