From 70608de66ed5daea75e7c67eadef2c7bf3796516 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 9 Mar 2010 14:35:20 +0000 Subject: [PATCH 1/3] . OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=30 --- bash.changes | 6 ++++++ bash.spec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/bash.changes b/bash.changes index 65449c27..a2119880 100644 --- a/bash.changes +++ b/bash.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 9 15:34:05 CET 2010 - werner@suse.de + +- Add patch from bash-bug list to avoid crahs on some strange + TAB completions + ------------------------------------------------------------------- Tue Mar 2 00:45:53 CET 2010 - ro@suse.de diff --git a/bash.spec b/bash.spec index abbab233..2bd0e5a6 100644 --- a/bash.spec +++ b/bash.spec @@ -51,6 +51,7 @@ Patch8: bash-4.0-async-bnc523667.dif Patch9: bash-4.0-extended_quote.patch Patch10: bash-3.2-printf.patch Patch11: bash-4.0-loadables.dif +Patch12: bash-4.1-completion.dif Patch14: bash-3.2-sigrestart.patch Patch15: bash-3.2-longjmp.dif Patch16: bash-4.0-setlocale.dif @@ -297,6 +298,7 @@ unset p %patch9 -p0 -b .extended_quote %patch10 -p0 -b .printf %patch11 -p0 -b .plugins +%patch12 -p0 -b .completion %patch14 -p0 -b .sigrestart %patch15 -p0 -b .longjmp %patch16 -p0 -b .setlocale From 0a4fc092ac9f61f1513cbc16285c2a2bb8c5c636 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 9 Mar 2010 16:24:21 +0000 Subject: [PATCH 2/3] . OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=31 --- bash-4.1-completion.dif | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bash-4.1-completion.dif diff --git a/bash-4.1-completion.dif b/bash-4.1-completion.dif new file mode 100644 index 00000000..cd613ebc --- /dev/null +++ b/bash-4.1-completion.dif @@ -0,0 +1,16 @@ +--- bashline.c ++++ bashline.c 2010-03-09 14:11:27.612626475 +0000 +@@ -1700,6 +1700,13 @@ globword: + return ((char *)NULL); + } + ++ if (GLOB_FAILED (glob_matches) || glob_matches == 0) ++ { ++ glob_ignore_case = old_glob_ignore_case; ++ glob_matches = (char **)NULL; ++ return ((char *)NULL); ++ } ++ + while (val = glob_matches[local_index++]) + { + if (executable_or_directory (val)) From 0d15e0e8e7d53d046824a23c777898a24479f381 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Fri, 12 Mar 2010 16:15:49 +0000 Subject: [PATCH 3/3] Updating link to change in openSUSE:Factory/bash revision 53.0 OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=313414e3c5f9142460bc4a813ab716e1 --- bash.spec | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bash.spec b/bash.spec index 2bd0e5a6..d8e925d8 100644 --- a/bash.spec +++ b/bash.spec @@ -28,7 +28,7 @@ Recommends: bash-lang = %bash_vers Suggests: command-not-found AutoReqProv: on Version: 4.1 -Release: 3 +Release: 4 Summary: The GNU Bourne-Again Shell Url: http://www.gnu.org/software/bash/bash.html Source0: ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}.tar.bz2 @@ -93,7 +93,7 @@ Group: Documentation/Man Provides: bash:%{_infodir}/bash.info.gz PreReq: %install_info_prereq Version: 4.1 -Release: 3 +Release: 4 AutoReqProv: on %if %suse_version > 1120 BuildArch: noarch @@ -116,7 +116,7 @@ License: GPLv2+ Summary: Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version: 4.1 -Release: 3 +Release: 4 AutoReqProv: on %description -n bash-devel @@ -136,7 +136,7 @@ License: GPLv2+ Summary: Loadable bash builtins Group: System/Shells Version: 4.1 -Release: 3 +Release: 4 AutoReqProv: on %description -n bash-loadables @@ -205,7 +205,7 @@ Summary: The Readline Library Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version: 6.1 -Release: 3 +Release: 4 Recommends: readline-doc = %{version} # bug437293 %ifarch ppc64 @@ -234,7 +234,7 @@ Summary: Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a Version: 6.1 -Release: 3 +Release: 4 Requires: libreadline6 = %{version} Requires: ncurses-devel Recommends: readline-doc = %{version} @@ -263,7 +263,7 @@ Group: System/Libraries Provides: readline:%{_infodir}/readline.info.gz PreReq: %install_info_prereq Version: 6.1 -Release: 3 +Release: 4 AutoReqProv: on %if %suse_version > 1120 BuildArch: noarch