commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2020-10-08 13:05:35 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.4249 (New) Package is "bash" Thu Oct 8 13:05:35 2020 rev:166 rq:836440 version:5.0.18 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2020-08-17 11:59:34.614500214 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.4249/bash.changes 2020-10-08 13:05:44.394822368 +0200 @@ -1,0 +2,6 @@ +Wed Sep 23 16:30:31 UTC 2020 - Stefan Dirsch + +- dot.profile: moved example for user specific LANG setting + from .profile to .i18n (x11-tools package) skeleton file (boo#1158724) + +--- Other differences: -- ++ dot.profile ++ --- /var/tmp/diff_new_pack.7CgIvJ/_old 2020-10-08 13:05:46.026823845 +0200 +++ /var/tmp/diff_new_pack.7CgIvJ/_new 2020-10-08 13:05:46.026823845 +0200 @@ -7,16 +7,6 @@ test -z "$PROFILEREAD" && . /etc/profile || true -# Most applications support several languages for their output. -# To make use of this feature, simply uncomment one of the lines below or -# add your own one (see /usr/share/locale/locale.alias for more codes) -# This overwrites the system default set in /etc/sysconfig/language -# in the variable RC_LANG. -# -#export LANG=de_DE.UTF-8 # uncomment this line for German output -#export LANG=fr_FR.UTF-8 # uncomment this line for French output -#export LANG=es_ES.UTF-8 # uncomment this line for Spanish output - # Some applications read the EDITOR variable to determine your favourite text # editor. So uncomment the line below and enter the editor of your choice :-) #export EDITOR=/usr/bin/vim
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2020-08-17 11:59:12 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.3399 (New) Package is "bash" Mon Aug 17 11:59:12 2020 rev:165 rq:824704 version:5.0.18 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2020-08-02 12:27:26.347800468 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.3399/bash.changes 2020-08-17 11:59:34.614500214 +0200 @@ -1,0 +2,5 @@ +Sun Aug 2 20:49:58 UTC 2020 - Matthias Eliasson + +- Bump bpatchlvl version to 18 which was missed in previous change + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.LQBvIQ/_old 2020-08-17 11:59:36.038501007 +0200 +++ /var/tmp/diff_new_pack.LQBvIQ/_new 2020-08-17 11:59:36.042501010 +0200 @@ -22,7 +22,7 @@ Name: bash %define bextend %nil %define bversion 5.0 -%define bpatchlvl 11 +%define bpatchlvl 18 Version:%{bversion}.%{bpatchlvl} Release:0 Summary:The GNU Bourne-Again Shell
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2020-08-02 12:27:22 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.3592 (New) Package is "bash" Sun Aug 2 12:27:22 2020 rev:164 rq:820865 version:5.0.11 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2020-05-19 14:43:36.09513 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.3592/bash.changes 2020-08-02 12:27:26.347800468 +0200 @@ -1,0 +2,8 @@ +Tue Jul 14 07:20:07 UTC 2020 - Dr. Werner Fink + +- Add official patch bash50-018 + * In certain cases, bash does not perform quoted null removal on patterns +that are used as part of word expansions such as ${parameter##pattern}, so +empty patterns are treated as non-empty. + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.8sptwK/_old 2020-08-02 12:27:27.195801340 +0200 +++ /var/tmp/diff_new_pack.8sptwK/_new 2020-08-02 12:27:27.199801343 +0200 @@ -201,6 +201,7 @@ %endif %setup -q -n bash-%{bversion}%{bextend} -b1 typeset -i level +set +x for patch in ../bash-%{bversion}-patches/*; do test -e $patch || break let level=0 || true @@ -214,6 +215,7 @@ echo Patch $patch patch -s -p$level < $patch done +set -x %patch1 -p0 -b .manual %patch2 -p0 -b .security %patch3 -p0 -b .2.4.4 ++ bash-5.0-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-018 new/bash-5.0-patches/bash50-018 --- old/bash-5.0-patches/bash50-018 1970-01-01 01:00:00.0 +0100 +++ new/bash-5.0-patches/bash50-018 2020-07-10 17:21:59.0 +0200 @@ -0,0 +1,45 @@ +BASH PATCH REPORT += + +Bash-Release: 5.0 +Patch-ID: bash50-018 + +Bug-Reported-by: oguzismailuy...@gmail.com +Bug-Reference-ID: +Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2019-10/msg00098.html + +Bug-Description: + +In certain cases, bash does not perform quoted null removal on patterns +that are used as part of word expansions such as ${parameter##pattern}, so +empty patterns are treated as non-empty. + +Patch (apply with `patch -p0'): + +*** ../bash-5.0.17/subst.c 2020-04-02 17:14:58.0 -0400 +--- subst.c2020-07-09 15:28:19.0 -0400 +*** +*** 5113,5116 +--- 5113,5118 + (int *)NULL, (int *)NULL) +: (WORD_LIST *)0; ++ if (l) ++ word_list_remove_quoted_nulls (l); +pat = string_list (l); +dispose_words (l); + +*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +--- patchlevel.h 2016-10-01 11:01:28.0 -0400 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 17 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 18 + + #endif /* _PATCHLEVEL_H_ */
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2020-05-19 14:43:22 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.2738 (New) Package is "bash" Tue May 19 14:43:22 2020 rev:163 rq:806032 version:5.0.11 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2020-05-09 19:48:15.332309942 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.2738/bash.changes 2020-05-19 14:43:36.09513 +0200 @@ -1,0 +2,9 @@ +Sat May 9 07:03:45 UTC 2020 - Dr. Werner Fink + +- Add official patch bash50-017 + * There were cases where patch 16 reaped process substitution +file descriptors (or FIFOs) and processes to early. This is +a better fix for the problem that bash50-016 attempted to solve. +- Remove temporary patch bash50-fix-016-close-new-fifos.patch + +--- Old: bash50-fix-016-close-new-fifos.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.PWie6n/_old 2020-05-19 14:43:38.539449635 +0200 +++ /var/tmp/diff_new_pack.PWie6n/_new 2020-05-19 14:43:38.543449643 +0200 @@ -62,8 +62,6 @@ Patch14:bash-4.3-sigrestart.patch # PATCH-FIX-UPSTREAM bnc#382214 -- disabled due bnc#806628 by -DBNC382214=0 Patch16:bash-4.0-setlocale.dif -# PATCH-FIX-UPSTREAM -Patch17:bash50-fix-016-close-new-fifos.patch # PATCH-EXTEND-SUSE bnc#828877 -- xterm resizing does not pass to all sub clients Patch18:bash-4.3-winch.dif Patch40:bash-4.1-bash.bashrc.dif @@ -229,7 +227,6 @@ %patch13 -p0 -b .nscdunmap %patch14 -p0 -b .sigrestart %patch16 -p0 -b .setlocale -%patch17 -p0 -b .fix016 #%patch18 -p0 -b .winch %patch40 -p0 -b .bashrc %if %{with sjis} ++ bash-5.0-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-012 new/bash-5.0-patches/bash50-012 --- old/bash-5.0-patches/bash50-012 2020-02-07 21:14:07.0 +0100 +++ new/bash-5.0-patches/bash50-012 2020-04-03 10:31:43.646276097 +0200 @@ -15,7 +15,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/lib/readline/misc.c2017-07-07 17:30:12.0 -0400 +*** lib/readline/misc.c2017-07-07 17:30:12.0 -0400 --- lib/readline/misc.c2019-05-16 11:43:46.0 -0400 *** *** 577,580 @@ -47,7 +47,7 @@ ! _rl_free_saved_history_line (); rl_ding (); } -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +*** patchlevel.h 2016-06-22 14:51:03.0 -0400 --- patchlevel.h 2016-10-01 11:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-013 new/bash-5.0-patches/bash50-013 --- old/bash-5.0-patches/bash50-013 2020-02-07 21:14:17.0 +0100 +++ new/bash-5.0-patches/bash50-013 2020-04-03 10:31:43.658275867 +0200 @@ -15,7 +15,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/lib/readline/histfile.c2018-06-11 09:14:52.0 -0400 +*** lib/readline/histfile.c2018-06-11 09:14:52.0 -0400 --- lib/readline/histfile.c2019-05-16 15:55:57.0 -0400 *** *** 370,376 @@ -56,7 +56,7 @@ } -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +*** patchlevel.h 2016-06-22 14:51:03.0 -0400 --- patchlevel.h 2016-10-01 11:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-014 new/bash-5.0-patches/bash50-014 --- old/bash-5.0-patches/bash50-014 2020-02-07 21:14:28.0 +0100 +++ new/bash-5.0-patches/bash50-014 2020-04-03 10:31:43.670275639 +0200 @@ -15,7 +15,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/bashline.c 2019-01-16 16:13:21.0 -0500 +*** bashline.c 2019-01-16 16:13:21.0 -0500 --- bashline.c 2019-02-11 11:18:57.0 -0500 *** *** 962,970 @@ -35,7 +35,7 @@ ! bash_add_history (rl_line_buffer); current_command_line_count = 0;/* for dummy history entry */ bash_add_history (""); -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +*** patchlevel.h 2016-06-22 14:51:03.0 -0400 --- patchlevel.h 2016-10-01 11:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-015 ne
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2020-05-09 19:48:12 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.2738 (New) Package is "bash" Sat May 9 19:48:12 2020 rev:162 rq:798881 version:5.0.11 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2020-04-08 19:54:05.701009929 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.2738/bash.changes 2020-05-09 19:48:15.332309942 +0200 @@ -1,0 +2,5 @@ +Sun Apr 19 08:03:03 UTC 2020 - Thorsten Kukuk + +- Fix usage of update-alternatives + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.FhtkoV/_old 2020-05-09 19:48:16.356312140 +0200 +++ /var/tmp/diff_new_pack.FhtkoV/_new 2020-05-09 19:48:16.356312140 +0200 @@ -455,11 +455,10 @@ # remains here :( # The same had happen for the system POSIX shell /bin/sh # - ln -sf %{_bindir}/bash %{buildroot}%{_sysconfdir}/alternatives/sh ln -sf %{_bindir}/bash %{buildroot}/bin/bash ln -sf %{_bindir}/sh %{buildroot}/bin/sh ln -sf bash%{buildroot}%{_bindir}/rbash - ln -sf bash%{buildroot}%{_bindir}/sh + ln -sf %{_sysconfdir}/alternatives/sh %{buildroot}%{_bindir}/sh install -m 644 COMPAT NEWS%{buildroot}%{_docdir}/%{name} install -m 644 COPYING%{buildroot}%{_docdir}/%{name} install -m 644 doc/FAQ%{buildroot}%{_docdir}/%{name} @@ -530,7 +529,7 @@ %{_bindir}/bash %{_bindir}/bashbug %{_bindir}/rbash -%verify(not link mtime) %{_bindir}/sh +%{_bindir}/sh %dir %{_datadir}/bash %dir %{_datadir}/bash/helpfiles %{_datadir}/bash/helpfiles/*
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2020-04-08 19:54:04 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.3248 (New) Package is "bash" Wed Apr 8 19:54:04 2020 rev:161 rq:791138 version:5.0.11 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2020-02-21 16:40:06.721763788 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new.3248/bash.changes 2020-04-08 19:54:05.701009929 +0200 @@ -1,0 +2,11 @@ +Fri Apr 3 08:28:08 UTC 2020 - Dr. Werner Fink + +- Add temporary patch bash50-fix-016-close-new-fifos.patch from upstream + to fix upstream patch bash50-016 + +--- +Mon Feb 24 09:21:01 UTC 2020 - Ludwig Nussel + +- move man pages back to main package. It's just 100k + +--- New: bash50-fix-016-close-new-fifos.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.n3OgkS/_old 2020-04-08 19:54:06.829010753 +0200 +++ /var/tmp/diff_new_pack.n3OgkS/_new 2020-04-08 19:54:06.833010755 +0200 @@ -62,6 +62,8 @@ Patch14:bash-4.3-sigrestart.patch # PATCH-FIX-UPSTREAM bnc#382214 -- disabled due bnc#806628 by -DBNC382214=0 Patch16:bash-4.0-setlocale.dif +# PATCH-FIX-UPSTREAM +Patch17:bash50-fix-016-close-new-fifos.patch # PATCH-EXTEND-SUSE bnc#828877 -- xterm resizing does not pass to all sub clients Patch18:bash-4.3-winch.dif Patch40:bash-4.1-bash.bashrc.dif @@ -102,7 +104,7 @@ %package doc Summary:Documentation how to Use the GNU Bourne-Again Shell -Group: Documentation/Man +Group: Documentation/HTML Provides: bash:%{_infodir}/bash.info.gz Supplements:packageand(bash:patterns-base-documentation) PreReq: %install_info_prereq @@ -227,6 +229,7 @@ %patch13 -p0 -b .nscdunmap %patch14 -p0 -b .sigrestart %patch16 -p0 -b .setlocale +%patch17 -p0 -b .fix016 #%patch18 -p0 -b .winch %patch40 -p0 -b .bashrc %if %{with sjis} @@ -531,6 +534,10 @@ %dir %{_datadir}/bash %dir %{_datadir}/bash/helpfiles %{_datadir}/bash/helpfiles/* +%{_mandir}/man1/bash.1* +%{_mandir}/man1/bashbuiltins.1* +%{_mandir}/man1/bashbug.1* +%{_mandir}/man1/rbash.1* %files lang -f bash.lang %defattr(-,root,root) @@ -538,10 +545,6 @@ %files doc %defattr(-,root,root) %doc %{_infodir}/bash.info* -%doc %{_mandir}/man1/bash.1* -%doc %{_mandir}/man1/bashbuiltins.1* -%doc %{_mandir}/man1/bashbug.1* -%doc %{_mandir}/man1/rbash.1* %doc %{_docdir}/%{name} %files devel ++ bash50-fix-016-close-new-fifos.patch ++ *** ../bash-5.0-patched/subst.c 2019-08-29 11:16:49.0 -0400 --- subst.c 2020-04-02 16:24:19.0 -0400 *** *** 5337,5341 } ! char * copy_fifo_list (sizep) int *sizep; --- 5337,5341 } ! void * copy_fifo_list (sizep) int *sizep; *** *** 5343,5347 if (sizep) *sizep = 0; ! return (char *)NULL; } --- 5343,5347 if (sizep) *sizep = 0; ! return (void *)NULL; } *** *** 5409,5414 if (fifo_list[i].file) { ! fifo_list[j].file = fifo_list[i].file; ! fifo_list[j].proc = fifo_list[i].proc; j++; } --- 5409,5419 if (fifo_list[i].file) { ! if (i != j) ! { ! fifo_list[j].file = fifo_list[i].file; ! fifo_list[j].proc = fifo_list[i].proc; ! fifo_list[i].file = (char *)NULL; ! fifo_list[i].proc = 0; ! } j++; } *** *** 5426,5433 void close_new_fifos (list, lsize) ! char *list; int lsize; { int i; if (list == 0) --- 5431,5439 void close_new_fifos (list, lsize) ! void *list; int lsize; { int i; + char *plist; if (list == 0) *** *** 5437,5442 } ! for (i = 0; i < lsize; i++) ! if (list[i] == 0 && i < fifo_list_size && fifo_list[i].proc != -1) unlink_fifo (i); --- 5443,5448 } ! for (plist = (char *)list, i = 0; i < lsize; i++) ! if (plist[i] == 0 && i < fifo_list_size && fifo_list[i].proc != -1) unlink_fifo (i); *** *** 5560,5568 } ! char * copy_fifo_list (sizep) int *sizep; { ! char *ret; if (nfds == 0 || totfds == 0) --- 5566,5574 } ! void * copy_fifo_list (sizep) int *sizep; { ! void *ret; if (nfds == 0 || totfds == 0) *** *** 5570,5579 if (sizep) *sizep = 0;
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2020-02-21 16:39:52 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.26092 (New) Package is "bash" Fri Feb 21 16:39:52 2020 rev:160 rq:774145 version:5.0.11 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-10-25 18:37:40.243644634 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.26092/bash.changes 2020-02-21 16:40:06.721763788 +0100 @@ -1,0 +2,21 @@ +Thu Feb 13 10:56:07 UTC 2020 - Dr. Werner Fink + +- Add official patch bash50-012 + When using previous-history to go back beyond the beginning of the history list, + it's possible to move to an incorrect partial line. +- Add official patch bash50-013 + Reading history entries with timestamps can result in history entries joined + by linefeeds. +- Add official patch bash50-014 + If the current line is empty, using the emacs C-xC-e binding to enter the + editor will edit the previous command instead of the current (empty) one. +- Add official patch bash50-015 + If alias expansion is enabled when processing the command argument to the + `-c' option, an alias is defined in that command, and the command ends with + the invocation of that alias, the shell's command parser can prematurely + terminate before the entire command is executed. +- Add official patch bash50-016 + Bash waits too long to reap /dev/fd process substitutions used as redirections + with loops and group commands, which can lead to file descriptor exhaustion. + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.CEx5ps/_old 2020-02-21 16:40:14.273778878 +0100 +++ /var/tmp/diff_new_pack.CEx5ps/_new 2020-02-21 16:40:14.309778950 +0100 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,7 +33,7 @@ Group: System/Shells Suggests: command-not-found Suggests: bash-doc = %version -Url:http://www.gnu.org/software/bash/bash.html +URL:http://www.gnu.org/software/bash/bash.html # Git: http://git.savannah.gnu.org/cgit/bash.git Source0:ftp://ftp.gnu.org/gnu/bash/bash-%{bversion}%{bextend}.tar.gz Source1:bash-%{bversion}-patches.tar.bz2 ++ bash-4.1-completion.dif ++ --- /var/tmp/diff_new_pack.CEx5ps/_old 2020-02-21 16:40:14.713779757 +0100 +++ /var/tmp/diff_new_pack.CEx5ps/_new 2020-02-21 16:40:14.713779757 +0100 @@ -4,7 +4,7 @@ --- bashline.c +++ bashline.c 2018-11-29 08:12:25.876588305 + -@@ -2046,6 +2046,13 @@ globword: +@@ -2043,6 +2043,13 @@ globword: return ((char *)NULL); } ++ bash-5.0-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-010 new/bash-5.0-patches/bash50-010 --- old/bash-5.0-patches/bash50-010 2019-08-29 17:10:00.0 +0200 +++ new/bash-5.0-patches/bash50-010 2019-09-09 10:09:15.423839773 +0200 @@ -45,7 +45,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/variables.c2018-12-18 11:07:21.0 -0500 +*** variables.c2018-12-18 11:07:21.0 -0500 --- variables.c2019-08-22 10:53:44.0 -0400 *** *** 4461,4467 @@ -136,7 +136,7 @@ + tempvar_list[tvlist_ind] = 0; -*** ../bash-5.0-patched/tests/varenv.right 2018-12-17 15:39:48.0 -0500 +*** tests/varenv.right 2018-12-17 15:39:48.0 -0500 --- tests/varenv.right 2019-08-22 16:05:25.0 -0400 *** *** 147,153 @@ -155,7 +155,7 @@ ! outside: declare -- var="outside" foo= environment foo= foo=foo environment foo=foo -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +*** patchlevel.h 2016-06-22 14:51:03.0 -0400 --- patchlevel.h 2016-10-01 11:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-011 new/bash-5.0-patches/bash50-011 --- old/bash-5.0-patches/bash50-011 2019-08-29 17:10:10.0 +0200 +++ new/bash-5.0-patches/bash50-011 2019-09-09 10:09:15.431839626 +0200 @@ -16,7 +16,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/subst.c2018-12-22 17:43:37.0 -0500 +*** subst.c2018-12-22 17:43:37.0 -0500 --- subst.c2019-04-
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-10-25 18:37:38 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.2990 (New) Package is "bash" Fri Oct 25 18:37:38 2019 rev:159 rq:738886 version:5.0.11 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-10-10 11:48:29.484110111 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.2990/bash.changes 2019-10-25 18:37:40.243644634 +0200 @@ -1,0 +2,8 @@ +Wed Oct 16 12:49:36 UTC 2019 - Dr. Werner Fink + +- Remove PILOTPORT and PILOTRATE environment variable from + default ~/.bashrc (/etc/skel/.bashrc) (bsc#1123510) +- Move definitions of environment variables from ~/.bashrc to + ~/.profile (/etc/skel/.profile) + +--- Other differences: -- ++ dot.bashrc ++ --- /var/tmp/diff_new_pack.nvJOvT/_old 2019-10-25 18:37:42.443646706 +0200 +++ /var/tmp/diff_new_pack.nvJOvT/_new 2019-10-25 18:37:42.447646710 +0200 @@ -1,5 +1,5 @@ -# Sample .bashrc for SuSE Linux -# Copyright (c) SuSE GmbH Nuernberg +# Sample .bashrc for SUSE Linux +# Copyright (c) SUSE Software Solutions Germany GmbH # There are 3 different types of shells in bash: the login shell, normal shell # and interactive shell. Login shells read ~/.profile and interactive shells @@ -10,19 +10,4 @@ # here, since multilingual X sessions would not work properly if LANG is over- # ridden in every subshell. -# Some applications read the EDITOR variable to determine your favourite text -# editor. So uncomment the line below and enter the editor of your choice :-) -#export EDITOR=/usr/bin/vim -#export EDITOR=/usr/bin/mcedit - -# For some news readers it makes sense to specify the NEWSSERVER variable here -#export NEWSSERVER=your.news.server - -# If you want to use a Palm device with Linux, uncomment the two lines below. -# For some (older) Palm Pilots, you might need to set a lower baud rate -# e.g. 57600 or 38400; lowest is 9600 (very slow!) -# -#export PILOTPORT=/dev/pilot -#export PILOTRATE=115200 - test -s ~/.alias && . ~/.alias || true ++ dot.profile ++ --- /var/tmp/diff_new_pack.nvJOvT/_old 2019-10-25 18:37:42.459646721 +0200 +++ /var/tmp/diff_new_pack.nvJOvT/_new 2019-10-25 18:37:42.459646721 +0200 @@ -1,4 +1,4 @@ -# Sample .profile for SuSE Linux +# Sample .profile for SUSE Linux # rewritten by Christian Steinruecken # # This file is read each time a login shell is started. @@ -17,6 +17,13 @@ #export LANG=fr_FR.UTF-8 # uncomment this line for French output #export LANG=es_ES.UTF-8 # uncomment this line for Spanish output +# Some applications read the EDITOR variable to determine your favourite text +# editor. So uncomment the line below and enter the editor of your choice :-) +#export EDITOR=/usr/bin/vim +#export EDITOR=/usr/bin/mcedit + +# For some news readers it makes sense to specify the NEWSSERVER variable here +#export NEWSSERVER=your.news.server # Some people don't like fortune. If you uncomment the following lines, # you will have a fortune each time you log in ;-)
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-10-10 11:48:27 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.2352 (New) Package is "bash" Thu Oct 10 11:48:27 2019 rev:158 rq:733440 version:5.0.11 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-09-20 14:45:34.106973713 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.2352/bash.changes 2019-10-10 11:48:29.484110111 +0200 @@ -1,0 +2,6 @@ +Thu Sep 19 12:00:32 UTC 2019 - Ludwig Nussel + +- Do not recommend lang package. The lang package already has a + supplements. + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.AwLIhV/_old 2019-10-10 11:48:31.092105843 +0200 +++ /var/tmp/diff_new_pack.AwLIhV/_new 2019-10-10 11:48:31.100105822 +0200 @@ -26,12 +26,11 @@ Version:%{bversion}.%{bpatchlvl} Release:0 Summary:The GNU Bourne-Again Shell -License:GPL-3.0-or-later -Group: System/Shells -Recommends: bash-lang = %version # The package bash-completion is a source of # bugs which will hit at most this package #Recommends: bash-completion +License:GPL-3.0-or-later +Group: System/Shells Suggests: command-not-found Suggests: bash-doc = %version Url:http://www.gnu.org/software/bash/bash.html @@ -121,6 +120,7 @@ Summary:Languages for package bash Group: System/Localization Requires: bash = %{version} +Supplements:bash %description lang Provides translations to the package bash
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-09-20 14:45:28 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.7948 (New) Package is "bash" Fri Sep 20 14:45:28 2019 rev:157 rq:729452 version:5.0.11 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-09-07 11:23:56.466507308 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.7948/bash.changes 2019-09-20 14:45:34.106973713 +0200 @@ -1,0 +2,18 @@ +Mon Sep 9 08:06:54 UTC 2019 - Dr. Werner Fink + +- Use new version scheme which now includes patch level as well +- Add official patch bash50-010 + * Change posix mode bahviour + * Remove patch assignment-preceding-builtin.patch +- Add official patch bash50-011 + The conditional command did not perform appropriate quoted null + character removal on its arguments, causing syntax errors and + attempts to stat invalid pathnames. + +--- +Wed Sep 4 09:08:53 UTC 2019 - Ludwig Nussel + +- Avoid pulling in bash-doc into every installation. Instead of + recommeding it, supplement the documentation pattern. + +--- Old: assignment-preceding-builtin.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.NcC1oe/_old 2019-09-20 14:45:37.206973096 +0200 +++ /var/tmp/diff_new_pack.NcC1oe/_new 2019-09-20 14:45:37.210973095 +0200 @@ -21,7 +21,9 @@ Name: bash %define bextend %nil -Version:5.0 +%define bversion 5.0 +%define bpatchlvl 11 +Version:%{bversion}.%{bpatchlvl} Release:0 Summary:The GNU Bourne-Again Shell License:GPL-3.0-or-later @@ -31,11 +33,11 @@ # bugs which will hit at most this package #Recommends: bash-completion Suggests: command-not-found -Recommends: bash-doc = %version +Suggests: bash-doc = %version Url:http://www.gnu.org/software/bash/bash.html # Git: http://git.savannah.gnu.org/cgit/bash.git -Source0:ftp://ftp.gnu.org/gnu/bash/bash-%{version}%{bextend}.tar.gz -Source1:bash-%{version}-patches.tar.bz2 +Source0:ftp://ftp.gnu.org/gnu/bash/bash-%{bversion}%{bextend}.tar.gz +Source1:bash-%{bversion}-patches.tar.bz2 Source4:run-tests Source5:dot.bashrc Source6:dot.profile @@ -46,7 +48,7 @@ # http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00071.html # http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00073.html Source9:bash-4.2-history-myown.dif.bz2 -Patch0: bash-%{version}.dif +Patch0: bash-%{bversion}.dif Patch1: bash-2.03-manual.patch Patch2: bash-4.0-security.patch Patch3: bash-4.3-2.4.4.patch @@ -72,8 +74,6 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch -# PATCH-EXTEND-UPSTREAM bash-5.0: problem with variable scoping in posix-mode -Patch100: assignment-preceding-builtin.patch BuildRequires: audit-devel BuildRequires: autoconf BuildRequires: bison @@ -105,6 +105,7 @@ Summary:Documentation how to Use the GNU Bourne-Again Shell Group: Documentation/Man Provides: bash:%{_infodir}/bash.info.gz +Supplements:packageand(bash:patterns-base-documentation) PreReq: %install_info_prereq BuildArch: noarch @@ -198,9 +199,9 @@ %else echo -e '\033[1m\032[31mShift JIS support disabled\033[m' %endif -%setup -q -n bash-%{version}%{bextend} -b1 +%setup -q -n bash-%{bversion}%{bextend} -b1 typeset -i level -for patch in ../bash-%{version}-patches/*; do +for patch in ../bash-%{bversion}-patches/*; do test -e $patch || break let level=0 || true file=$(lsdiff --files=1 $patch) @@ -209,7 +210,7 @@ let level++ || true fi test -e $file || exit 1 -sed -ri '/^\*\*\* \.\./{ s@\.\./bash-%{version}[^/]*/@@ }' $patch +sed -ri '/^\*\*\* \.\./{ s@\.\./bash-%{bversion}[^/]*/@@ }' $patch echo Patch $patch patch -s -p$level < $patch done @@ -237,7 +238,6 @@ %patch48 -b .eif %endif %patch49 -p0 -b .pthtmp -%patch100 -p0 -b .posix %patch0 -p0 -b .0 # This has to be always the same version as included in the bash its self @@ -475,9 +475,9 @@ problems in geting the current cursor position within the readline runtime library: | -bash-%{version}> LANG=ja_JP -bash-%{version}> echo -n "Hello" -bash-%{version}> +bash-%{bversion}> LANG=ja_JP +bash-%{bversion}> echo -n "Hello" +bash-%{bversion}> | In other words the prompt overwrites the ou
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-09-07 11:23:54 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.7948 (New) Package is "bash" Sat Sep 7 11:23:54 2019 rev:156 rq:725335 version:5.0 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-04-28 19:56:46.087032132 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.7948/bash.changes 2019-09-07 11:23:56.466507308 +0200 @@ -1,0 +2,11 @@ +Thu Aug 15 13:43:55 UTC 2019 - Dr. Werner Fink + +- Add official patch bash50-008 + When HISTSIZE is set to 0, history expansion can leave the history length + set to an incorrect value, leading to subsequent attempts to access invalid + memory. +- Add official patch bash50-009 + The history file reading code doesn't close the file descriptor open to + the history file when it encounters a zero-length file. + +--- Other differences: -- ++ bash-5.0-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-004 new/bash-5.0-patches/bash50-004 --- old/bash-5.0-patches/bash50-004 2019-04-20 20:30:41.0 +0200 +++ new/bash-5.0-patches/bash50-004 2019-04-23 15:00:01.888911384 +0200 @@ -17,7 +17,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.0 -0500 +*** jobs.c 2018-12-06 11:44:34.0 -0500 --- jobs.c 2019-04-12 15:15:10.0 -0400 *** *** 2489,2496 @@ -36,7 +36,7 @@ /* We don't want to wait indefinitely if we have stopped children. */ if (any_stopped == 0) { -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +*** patchlevel.h 2016-06-22 14:51:03.0 -0400 --- patchlevel.h 2016-10-01 11:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-005 new/bash-5.0-patches/bash50-005 --- old/bash-5.0-patches/bash50-005 2019-04-20 20:30:53.0 +0200 +++ new/bash-5.0-patches/bash50-005 2019-04-23 15:00:01.900911158 +0200 @@ -15,7 +15,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/command.h 2018-07-20 21:16:31.0 -0400 +*** command.h 2018-07-20 21:16:31.0 -0400 --- command.h 2019-02-20 11:09:36.0 -0500 *** *** 187,190 @@ -25,7 +25,7 @@ + #define CMD_TRY_OPTIMIZING 0x8000 /* try to optimize this simple command */ /* What a command looks like. */ -*** ../bash-5.0-patched/builtins/evalstring.c 2018-12-26 11:19:21.0 -0500 +*** builtins/evalstring.c 2018-12-26 11:19:21.0 -0500 --- builtins/evalstring.c 2019-01-29 14:15:19.0 -0500 *** *** 101,104 @@ -82,7 +82,7 @@ ! } #endif /* ONESHOT */ -*** ../bash-5.0-patched/execute_cmd.c 2018-12-05 09:05:14.0 -0500 +*** execute_cmd.c 2018-12-05 09:05:14.0 -0500 --- execute_cmd.c 2019-01-25 15:59:00.0 -0500 *** *** 2768,2771 @@ -93,7 +93,7 @@ + second = command->value.Connection->second; if (ignore_return && second) -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +*** patchlevel.h 2016-06-22 14:51:03.0 -0400 --- patchlevel.h 2016-10-01 11:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-006 new/bash-5.0-patches/bash50-006 --- old/bash-5.0-patches/bash50-006 2019-04-20 20:31:06.0 +0200 +++ new/bash-5.0-patches/bash50-006 2019-04-23 15:00:01.912910933 +0200 @@ -15,7 +15,7 @@ Patch (apply with `patch -p0'): -*** ../bash-5.0-patched/builtins/shopt.def 2018-10-05 14:49:02.0 -0400 +*** builtins/shopt.def 2018-10-05 14:49:02.0 -0400 --- builtins/shopt.def 2019-01-23 09:55:22.0 -0500 *** *** 123,127 @@ -30,7 +30,7 @@ ! #if defined (SYSLOG_HISTORY) extern int syslog_history; #endif -*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +*** patchlevel.h 2016-06-22 14:51:03.0 -0400 --- patchlevel.h 2016-10-01 11:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-007 new/bash-5.0-patches/bash50-007 --- old/bash-5.0-patches/bash50-007 2019-04-20 20:31:17.0 +0200 +++ ne
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-04-28 19:56:42 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.5536 (New) Package is "bash" Sun Apr 28 19:56:42 2019 rev:155 rq:697366 version:5.0 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-04-08 10:29:55.039107810 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.5536/bash.changes 2019-04-28 19:56:46.087032132 +0200 @@ -1,0 +2,19 @@ +Tue Apr 23 12:58:16 UTC 2019 - Dr. Werner Fink + +- Add official patch bash50-004 + * In bash-5.0, the `wait' builtin without arguments waits for all children of the +shell. This includes children it `inherited' at shell invocation time. This +patch modifies the behavior to not wait for these inherited children, some +of which might be long-lived. +- Add official patch bash50-005 + * In certain cases, bash optimizes out a fork() call too early and prevents +traps from running. +- Add official patch bash50-006 + * Bash-5.0 did not build successfully if SYSLOG_HISTORY was defined without +also defining SYSLOG_SHOPT. +- Add official patch bash50-007 + * Running `exec' when job control was disabled, even temporarily, but after it +had been initialized, could leave the terminal in the wrong process group for +the executed process. + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.D7RpYG/_old 2019-04-28 19:56:46.827031685 +0200 +++ /var/tmp/diff_new_pack.D7RpYG/_new 2019-04-28 19:56:46.831031683 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -492,6 +492,7 @@ chmod 600%{buildroot}%{_sysconfdir}/skel/.bash_history %find_lang bash %fdupes -s %{buildroot}%{_datadir}/bash/helpfiles + sed -ri '1{ s@/bin/sh@/bin/bash@ }' %{buildroot}%{_bindir}/bashbug %post -p /bin/bash %{_sbindir}/update-alternatives --quiet --force \ ++ bash-5.0-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-004 new/bash-5.0-patches/bash50-004 --- old/bash-5.0-patches/bash50-004 1970-01-01 01:00:00.0 +0100 +++ new/bash-5.0-patches/bash50-004 2019-04-20 20:30:41.0 +0200 @@ -0,0 +1,53 @@ +BASH PATCH REPORT += + +Bash-Release: 5.0 +Patch-ID: bash50-004 + +Bug-Reported-by: Daniel Kahn Gillmor +Bug-Reference-ID: <87lg0g8aiw@fifthhorseman.net> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2019-04/msg00076.html + +Bug-Description: + +In bash-5.0, the `wait' builtin without arguments waits for all children of the +shell. This includes children it `inherited' at shell invocation time. This +patch modifies the behavior to not wait for these inherited children, some +of which might be long-lived. + +Patch (apply with `patch -p0'): + +*** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.0 -0500 +--- jobs.c 2019-04-12 15:15:10.0 -0400 +*** +*** 2489,2496 +wait_procsubs (); +reap_procsubs (); +! #if 1 +/* We don't want to wait indefinitely if we have stopped children. */ +- /* XXX - should add a loop that goes through the list of process +- substitutions and waits for each proc in turn before this code. */ +if (any_stopped == 0) + { +--- 2490,2495 +wait_procsubs (); +reap_procsubs (); +! #if 0 +/* We don't want to wait indefinitely if we have stopped children. */ +if (any_stopped == 0) + { +*** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.0 -0400 +--- patchlevel.h 2016-10-01 11:01:28.0 -0400 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 3 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 4 + + #endif /* _PATCHLEVEL_H_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-005 new/bash-5.0-patches/bash50-005 --- old/bash-5.0-patches/bash50-005 1970-01-01 01:00:00.0 +0100 +++ new/bash-5.0-patches/bash50-005 2019-04-20 20:30:53.0 +0200 @@ -0,0 +1,110 @@ +BASH PATCH RE
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-04-08 10:29:52 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.3908 (New) Package is "bash" Mon Apr 8 10:29:52 2019 rev:154 rq:691415 version:5.0 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-03-18 10:33:36.503556821 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new.3908/bash.changes 2019-04-08 10:29:55.039107810 +0200 @@ -1,0 +2,17 @@ +Thu Apr 4 07:18:57 UTC 2019 - Dr. Werner Fink + +- Add temporary fix from upstream for boo#1128936 + +--- +Thu Mar 21 08:24:11 UTC 2019 - Dr. Werner Fink + +- Add patch assignment-preceding-builtin.patch from upstream + mailing list. Note that this break backward behaviour with + bash-4.4 but implies that POSIX mode is more correct + +--- +Thu Mar 21 07:57:41 UTC 2019 - Dr. Werner Fink + +- Replace the temporary patch with official bash50-003 + +--- New: assignment-preceding-builtin.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.mDvSAo/_old 2019-04-08 10:29:58.187111632 +0200 +++ /var/tmp/diff_new_pack.mDvSAo/_new 2019-04-08 10:29:58.19637 +0200 @@ -72,6 +72,8 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch +# PATCH-EXTEND-UPSTREAM bash-5.0: problem with variable scoping in posix-mode +Patch100: assignment-preceding-builtin.patch BuildRequires: audit-devel BuildRequires: autoconf BuildRequires: bison @@ -235,6 +237,7 @@ %patch48 -b .eif %endif %patch49 -p0 -b .pthtmp +%patch100 -p0 -b .posix %patch0 -p0 -b .0 # This has to be always the same version as included in the bash its self ++ assignment-preceding-builtin.patch ++ From: Chet Ramey Subject: Re: [bug-bash] bash-5.0: problem with variable scoping in posix-mode > > Description: > > > > There is a problem with variable scoping when variable is created from > > assignment statement preceding function call in posix-mode. See an > > example below. > > > > > > Repeat-By: > > > > $ cat test.sh > > #!/bin/sh > > > > myecho() { > > echo $var > > } > > > > foo() { > > local var="foo: FAIL" > > var="foo: bar" myecho > > } > > > > foo > > > > $ bash test.sh > > foo: bar > > $ bash --posix test.sh > > foo: FAIL > > This is a consequence of a combination of two POSIX features. First, POSIX > requires assignment statements preceding special builtins to create global > variables (POSIX has no local variables) that persist in the shell context > after the special builtin completes. Second, POSIX requires* that > assignment statements preceding function calls have the same variable- > assignment behavior as special builtins. > > So the variable assignment preceding the function call creates a global > variable, and the local variable is found before that global when `myecho' > is executed according to the standard bash dynamic scoping rules. If you > add an `echo $var' after the call to foo, you'll see this behavior. > > (*) The most recent version of the standard has removed this requirement > for shell functions, and I will change that behavior for the next release > of bash. Until then, the old behavior persists. This behavior is not quite backwards-compatible with bash-4.4. Here is a patch that implements a portion of the proposed bash-5.1 behavior. It changes the variable assignment semantics so that variable assignments preceding builtins and shell functions act more like standalone assignment statements and modify the "current execution environment" (in POSIX terms) instead of unconditionally modifying the global variable scope. This means that assignments preceding shell functions and special builtins will modify existing local variables and modifications to local variables will not propagate to the calling environment, and will create global variables if there is not an existing local variable with that name. This is compatible with other POSIX shells that implement local variables. It is not completely compatible with bash-4.4, since the bash-4.4 behavior wasn't fully POSIX-conformant and had variable scoping bugs as well. The original discussion concerning this is at http://lists.gnu.org/archive/html/bug-bash/2018-05/msg2.html Chet --- variables.c | 35 ++- 1 file changed, 30 insertions(+), 5 deletions(-) --- variables.c +++ variables.c 2019-03-21 08:
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-03-18 10:33:32 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.28833 (New) Package is "bash" Mon Mar 18 10:33:32 2019 rev:153 rq:684640 version:5.0 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-03-13 09:47:45.854977153 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new.28833/bash.changes 2019-03-18 10:33:36.503556821 +0100 @@ -1,0 +2,37 @@ +Mon Mar 11 07:20:37 UTC 2019 - Dr. Werner Fink + +- Update temporary patch from upstream to make sed testsuite + work again + +--- +Wed Mar 6 11:06:10 UTC 2019 - Dr. Werner Fink + +- Requires(postun) -> Requires(preun) + +--- +Tue Mar 5 12:04:07 UTC 2019 - Dr. Werner Fink + +- Do not link /bin/sh as slave alternative to /usr/bin/sh + +--- +Mon Mar 4 14:30:38 UTC 2019 - Dr. Werner Fink + +- Add temporary patch from upstream to fix boo#1127700 + +--- +Mon Mar 4 10:14:12 UTC 2019 - Dr. Werner Fink + +- Refine and harden update-alternatives work flow +- Move header and Makefile from bash-loadables to bash-devel + +--- +Fri Mar 1 14:01:16 UTC 2019 - Dr. Werner Fink + +- Make update-alternatives work flawless + +--- +Fri Feb 8 10:30:17 UTC 2019 - Jan Engelhardt + +- Put "sh" under control of update-alternatives + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.lqa5HT/_old 2019-03-18 10:33:37.435556589 +0100 +++ /var/tmp/diff_new_pack.lqa5HT/_new 2019-03-18 10:33:37.439556588 +0100 @@ -20,18 +20,6 @@ %bcond_with sjis Name: bash -BuildRequires: audit-devel -BuildRequires: autoconf -BuildRequires: bison -BuildRequires: fdupes -BuildRequires: makeinfo -BuildRequires: ncurses-devel -BuildRequires: patchutils -BuildRequires: pkg-config -# This has to be always the same version as included in the bash its self -BuildRequires: readline-devel == 8.0 -BuildRequires: screen -BuildRequires: sed %define bextend %nil Version:5.0 Release:0 @@ -84,6 +72,21 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch +BuildRequires: audit-devel +BuildRequires: autoconf +BuildRequires: bison +BuildRequires: fdupes +BuildRequires: makeinfo +BuildRequires: ncurses-devel +BuildRequires: patchutils +BuildRequires: pkg-config +# This has to be always the same version as included in the bash its self +BuildRequires: readline-devel == 8.0 +BuildRequires: screen +BuildRequires: sed +BuildRequires: update-alternatives +Requires(post): update-alternatives +Requires(preun): update-alternatives %global _sysconfdir /etc %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash @@ -126,8 +129,8 @@ %description devel This package contains the C header files for writing loadable new -builtins for the interpreter Bash. Use -I /usr/include/bash/ -on the compilers command line. +builtins for the interpreter Bash. Use the output of the command +`pkg-config bash --cflags' on the compilers command line. %package loadables Summary:Loadable bash builtins @@ -433,19 +436,24 @@ %install %make_install make -C examples/loadables/ install-supported DESTDIR=%{buildroot} libdir=/%{_lib} + mv -vf %{buildroot}%{_ldldir}/*.h %{buildroot}%{_includedir}/bash/ + mv -vf %{buildroot}%{_ldldir}/*.inc %{buildroot}%{_datadir}/bash rm -rf %{buildroot}%{_libdir}/bash rm -rf %{buildroot}/%{_lib}/pkgconfig sed -ri '/CC = gcc/s@(CC = gcc).*@\1@' %{buildroot}%{_libdir}/pkgconfig/bash.pc mkdir -p %{buildroot}/bin - mv %{buildroot}%{_bindir}/bash %{buildroot}/bin/ -%if %_minsh - install sh %{buildroot}/bin/sh - ln -sf ../../bin/sh %{buildroot}%{_bindir}/sh -%else - ln -sf bash %{buildroot}/bin/sh - ln -sf ../../bin/bash %{buildroot}%{_bindir}/sh -%endif - ln -sf ../../bin/bash %{buildroot}%{_bindir}/rbash + mkdir -p %{buildroot}%{_sysconfdir}/alternatives +# +# It should be noted that the move of /bin/bash to /usr/bin/bash +# had NOT done by me at 2019/02/08. Now only a symbolic link +# remains here :( +# The same had happen for the system POSIX shell /bin/sh +# + ln -sf %{_bi
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-03-13 09:47:41 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.28833 (New) Package is "bash" Wed Mar 13 09:47:41 2019 rev:152 rq: version:5.0 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-03-13 09:04:45.791451561 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new.28833/bash.changes 2019-03-13 09:47:45.854977153 +0100 @@ -2,37 +1,0 @@ -Mon Mar 11 07:20:37 UTC 2019 - Dr. Werner Fink - -- Update temporary patch from upstream to make sed testsuite - work again - -Wed Mar 6 11:06:10 UTC 2019 - Dr. Werner Fink - -- Requires(postun) -> Requires(preun) - -Tue Mar 5 12:04:07 UTC 2019 - Dr. Werner Fink - -- Do not link /bin/sh as slave alternative to /usr/bin/sh - -Mon Mar 4 14:30:38 UTC 2019 - Dr. Werner Fink - -- Add temporary patch from upstream to fix boo#1127700 - -Mon Mar 4 10:14:12 UTC 2019 - Dr. Werner Fink - -- Refine and harden update-alternatives work flow -- Move header and Makefile from bash-loadables to bash-devel - -Fri Mar 1 14:01:16 UTC 2019 - Dr. Werner Fink - -- Make update-alternatives work flawless - -Fri Feb 8 10:30:17 UTC 2019 - Jan Engelhardt - -- Put "sh" under control of update-alternatives - Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.zv8It0/_old 2019-03-13 09:47:47.266976844 +0100 +++ /var/tmp/diff_new_pack.zv8It0/_new 2019-03-13 09:47:47.270976844 +0100 @@ -20,6 +20,18 @@ %bcond_with sjis Name: bash +BuildRequires: audit-devel +BuildRequires: autoconf +BuildRequires: bison +BuildRequires: fdupes +BuildRequires: makeinfo +BuildRequires: ncurses-devel +BuildRequires: patchutils +BuildRequires: pkg-config +# This has to be always the same version as included in the bash its self +BuildRequires: readline-devel == 8.0 +BuildRequires: screen +BuildRequires: sed %define bextend %nil Version:5.0 Release:0 @@ -72,21 +84,6 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch -BuildRequires: audit-devel -BuildRequires: autoconf -BuildRequires: bison -BuildRequires: fdupes -BuildRequires: makeinfo -BuildRequires: ncurses-devel -BuildRequires: patchutils -BuildRequires: pkg-config -# This has to be always the same version as included in the bash its self -BuildRequires: readline-devel == 8.0 -BuildRequires: screen -BuildRequires: sed -BuildRequires: update-alternatives -Requires(post): update-alternatives -Requires(preun): update-alternatives %global _sysconfdir /etc %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash @@ -129,8 +126,8 @@ %description devel This package contains the C header files for writing loadable new -builtins for the interpreter Bash. Use the output of the command -`pkg-config bash --cflags' on the compilers command line. +builtins for the interpreter Bash. Use -I /usr/include/bash/ +on the compilers command line. %package loadables Summary:Loadable bash builtins @@ -436,24 +433,19 @@ %install %make_install make -C examples/loadables/ install-supported DESTDIR=%{buildroot} libdir=/%{_lib} - mv -vf %{buildroot}%{_ldldir}/*.h %{buildroot}%{_includedir}/bash/ - mv -vf %{buildroot}%{_ldldir}/*.inc %{buildroot}%{_datadir}/bash rm -rf %{buildroot}%{_libdir}/bash rm -rf %{buildroot}/%{_lib}/pkgconfig sed -ri '/CC = gcc/s@(CC = gcc).*@\1@' %{buildroot}%{_libdir}/pkgconfig/bash.pc mkdir -p %{buildroot}/bin - mkdir -p %{buildroot}%{_sysconfdir}/alternatives -# -# It should be noted that the move of /bin/bash to /usr/bin/bash -# had NOT done by me at 2019/02/08. Now only a symbolic link -# remains here :( -# The same had happen for the system POSIX shell /bin/sh -# - ln -sf %{_bindir}/bash %{buildroot}%{_sysconfdir}/alternatives/sh - ln -sf %{_bindir}/bash %{buildroot}/bin/bash - ln -sf %{_bindir}/sh %{buildroot}/bin/sh - ln -sf bash%{buildroot}%{_bindir}/rbash - ln -sf bash%{buildroot}%{_bindir}/sh + mv %{buildroot}%{_bindir}/bash %{buildroot}/bin/ +%if
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-03-13 09:04:43 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.28833 (New) Package is "bash" Wed Mar 13 09:04:43 2019 rev:151 rq:683701 version:5.0 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-02-14 14:10:57.296293219 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new.28833/bash.changes 2019-03-13 09:04:45.791451561 +0100 @@ -1,0 +2,37 @@ +Mon Mar 11 07:20:37 UTC 2019 - Dr. Werner Fink + +- Update temporary patch from upstream to make sed testsuite + work again + +--- +Wed Mar 6 11:06:10 UTC 2019 - Dr. Werner Fink + +- Requires(postun) -> Requires(preun) + +--- +Tue Mar 5 12:04:07 UTC 2019 - Dr. Werner Fink + +- Do not link /bin/sh as slave alternative to /usr/bin/sh + +--- +Mon Mar 4 14:30:38 UTC 2019 - Dr. Werner Fink + +- Add temporary patch from upstream to fix boo#1127700 + +--- +Mon Mar 4 10:14:12 UTC 2019 - Dr. Werner Fink + +- Refine and harden update-alternatives work flow +- Move header and Makefile from bash-loadables to bash-devel + +--- +Fri Mar 1 14:01:16 UTC 2019 - Dr. Werner Fink + +- Make update-alternatives work flawless + +--- +Fri Feb 8 10:30:17 UTC 2019 - Jan Engelhardt + +- Put "sh" under control of update-alternatives + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.eLcUHV/_old 2019-03-13 09:04:47.931451340 +0100 +++ /var/tmp/diff_new_pack.eLcUHV/_new 2019-03-13 09:04:47.939451339 +0100 @@ -20,18 +20,6 @@ %bcond_with sjis Name: bash -BuildRequires: audit-devel -BuildRequires: autoconf -BuildRequires: bison -BuildRequires: fdupes -BuildRequires: makeinfo -BuildRequires: ncurses-devel -BuildRequires: patchutils -BuildRequires: pkg-config -# This has to be always the same version as included in the bash its self -BuildRequires: readline-devel == 8.0 -BuildRequires: screen -BuildRequires: sed %define bextend %nil Version:5.0 Release:0 @@ -84,6 +72,21 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch +BuildRequires: audit-devel +BuildRequires: autoconf +BuildRequires: bison +BuildRequires: fdupes +BuildRequires: makeinfo +BuildRequires: ncurses-devel +BuildRequires: patchutils +BuildRequires: pkg-config +# This has to be always the same version as included in the bash its self +BuildRequires: readline-devel == 8.0 +BuildRequires: screen +BuildRequires: sed +BuildRequires: update-alternatives +Requires(post): update-alternatives +Requires(preun): update-alternatives %global _sysconfdir /etc %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash @@ -126,8 +129,8 @@ %description devel This package contains the C header files for writing loadable new -builtins for the interpreter Bash. Use -I /usr/include/bash/ -on the compilers command line. +builtins for the interpreter Bash. Use the output of the command +`pkg-config bash --cflags' on the compilers command line. %package loadables Summary:Loadable bash builtins @@ -433,19 +436,24 @@ %install %make_install make -C examples/loadables/ install-supported DESTDIR=%{buildroot} libdir=/%{_lib} + mv -vf %{buildroot}%{_ldldir}/*.h %{buildroot}%{_includedir}/bash/ + mv -vf %{buildroot}%{_ldldir}/*.inc %{buildroot}%{_datadir}/bash rm -rf %{buildroot}%{_libdir}/bash rm -rf %{buildroot}/%{_lib}/pkgconfig sed -ri '/CC = gcc/s@(CC = gcc).*@\1@' %{buildroot}%{_libdir}/pkgconfig/bash.pc mkdir -p %{buildroot}/bin - mv %{buildroot}%{_bindir}/bash %{buildroot}/bin/ -%if %_minsh - install sh %{buildroot}/bin/sh - ln -sf ../../bin/sh %{buildroot}%{_bindir}/sh -%else - ln -sf bash %{buildroot}/bin/sh - ln -sf ../../bin/bash %{buildroot}%{_bindir}/sh -%endif - ln -sf ../../bin/bash %{buildroot}%{_bindir}/rbash + mkdir -p %{buildroot}%{_sysconfdir}/alternatives +# +# It should be noted that the move of /bin/bash to /usr/bin/bash +# had NOT done by me at 2019/02/08. Now only a symbolic link +# remains here :( +# The same had happen for the system POSIX shell /bin/sh +# + ln -sf %{_bi
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-02-14 14:10:51 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.28833 (New) Package is "bash" Thu Feb 14 14:10:51 2019 rev:150 rq:672490 version:5.0 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2019-01-29 14:38:18.891558750 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new.28833/bash.changes 2019-02-14 14:10:57.296293219 +0100 @@ -1,0 +2,5 @@ +Thu Feb 7 15:06:12 UTC 2019 - Dr. Werner Fink + +- Add upstream patches bash50-001 and bash50-002 + +--- Other differences: -- ++ bash-5.0-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-5.0-patches/bash50-001 new/bash-5.0-patches/bash50-001 --- old/bash-5.0-patches/bash50-001 1970-01-01 01:00:00.0 +0100 +++ new/bash-5.0-patches/bash50-001 2019-01-18 21:02:46.0 +0100 @@ -0,0 +1,166 @@ +BASH PATCH REPORT += + +Bash-Release: 5.0 +Patch-ID: bash50-001 + +Bug-Reported-by: a...@freakout.de +Bug-Reference-ID: <201901082050.x08koshs006...@bongo.freakout.de> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2019-01/msg00079.html + +Bug-Description: + +Under certain circumstances, the glob expansion code did not remove +backslashes escaping characters in directory names (or portions of a +pattern preceding a slash). + +Patch (apply with `patch -p0'): + +*** ../bash-5.0/bashline.c 2018-11-27 13:20:16.0 -0500 +--- bashline.c 2019-01-16 16:06:03.0 -0500 +*** +*** 232,235 +--- 232,236 + static int bash_possible_command_completions __P((int, int)); + ++ static int completion_glob_pattern __P((char *)); + static char *glob_complete_word __P((const char *, int)); + static int bash_glob_completion_internal __P((int)); +*** +*** 1742,1746 +/* This could be a globbing pattern, so try to expand it using pathname + expansion. */ +! if (!matches && glob_pattern_p (text)) + { +matches = rl_completion_matches (text, glob_complete_word); +--- 1743,1747 +/* This could be a globbing pattern, so try to expand it using pathname + expansion. */ +! if (!matches && completion_glob_pattern ((char *)text)) + { +matches = rl_completion_matches (text, glob_complete_word); +*** +*** 1851,1855 + } + +! globpat = glob_pattern_p (hint_text); + +/* If this is an absolute program name, do not check it against +--- 1852,1856 + } + +! globpat = completion_glob_pattern ((char *)hint_text); + +/* If this is an absolute program name, do not check it against +*** +*** 3714,3717 +--- 3715,3773 + } + ++ static int ++ completion_glob_pattern (string) ++ char *string; ++ { ++ register int c; ++ char *send; ++ int open; ++ ++ DECLARE_MBSTATE; ++ ++ open = 0; ++ send = string + strlen (string); ++ ++ while (c = *string++) ++ { ++ switch (c) ++ { ++ case '?': ++ case '*': ++return (1); ++ ++ case '[': ++open++; ++continue; ++ ++ case ']': ++if (open) ++ return (1); ++continue; ++ ++ case '+': ++ case '@': ++ case '!': ++if (*string == '(') /*)*/ ++ return (1); ++continue; ++ ++ case '\\': ++if (*string == 0) ++ return (0); ++ } ++ ++ /* Advance one fewer byte than an entire multibyte character to ++ account for the auto-increment in the loop above. */ ++ #ifdef HANDLE_MULTIBYTE ++ string--; ++ ADVANCE_CHAR_P (string, send - string); ++ string++; ++ #else ++ ADVANCE_CHAR_P (string, send - string); ++ #endif ++ } ++ return (0); ++ } ++ + static char *globtext; + static char *globorig; +*** +*** 3878,3882 + } + +! if (t && glob_pattern_p (t) == 0) + rl_explicit_arg = 1; /* XXX - force glob_complete_word to append `*' */ +FREE (t); +--- 3934,3938 + } + +! if (t && completion_glob_pattern (t) == 0) + rl_explicit_arg = 1; /* XXX - force glob_complete_word to append `*' */ +FREE (t); +*** ../bash-5.0/lib/glob/glob_loop.c 2018-12-31 13:35:15.0 -0500 +--- lib/glob/glob_loop.c 2019-01-09 09:44:36.0 -0500 +*** +*** 55,59 + +case L('\\'): +- #if 0 + /* Don't let the pat
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2019-01-29 14:38:13 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new.28833 (New) Package is "bash" Tue Jan 29 14:38:13 2019 rev:149 rq:664075 version:5.0 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2018-07-17 09:36:27.530557638 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new.28833/bash.changes 2019-01-29 14:38:18.891558750 +0100 @@ -1,0 +2,166 @@ +Wed Jan 9 12:47:04 UTC 2019 - Dr. Werner Fink + +- Update to bash 5.0 (final) + a. Tilde expansion isn't performed on indexed array subscripts, even for + backwards compatibility. + b. The shell doesn't exit in posix mode if the eval builtin gets a parse + error when run by the command builtin. + c. Fixed a bug that caused a shell comment in an alias to not find the end + of the alias properly. + d. Reverted a change from April, 2018 that caused strings containing + backslashes to be flagged as glob patterns. +- Modify patches + * bash-2.03-manual.patch + * bash-4.3-loadables.dif + * bash-5.0.dif + +--- +Fri Dec 21 13:34:47 UTC 2018 - Dr. Werner Fink + +- Update to bash 5.0 rc1 + a. Fix to initial word completion detection code. + b. Fixed a bug that caused issues with assignment statements containing ^A in + the value assigned when IFS contains ^A. + c. Added a fallback to fnmatch() when strcoll can't correctly deal with + bracket expression character equivalence classes. + d. Fixed a bug that caused $BASH_COMMAND to contain the trap handler command + when running a trap handler containing [[ or (( commands. + e. Fixed a bug that caused nameref assignments in the temporary environment + to potentially create variables with invalid names. + f. Fixed a bug that caused `local -' to turn off alias expansion in scripts. + g. Fixed a parser issue with a command string containing EOF after an invalid + command as an argument to a special builtin not causing a posix-mode shell + to exit. + h. Made a slight change to the FNV-1 string hash algorithm used for associative + arrays (corrected the initial seed). + a. The `select' command now supports command forms without a word list + following `in'. + +--- +Thu Nov 29 08:22:16 UTC 2018 - Dr. Werner Fink + +- Update to bash 5.0 beta2 + ii. Associative and indexed arrays now allow subscripts consisting solely of + whitespace. + jj. `checkwinsize' is now enabled by default. + kk. The `localvar_unset' shopt option is now visible and documented. + ll. The `progcomp_alias' shopt option is now visible and documented. + mm. The signal name processing code now understands `SIGRTMIN+n' all the way + up to SIGRTMAX. + nn. There is a new `seq' loadable builtin. + oo. Trap execution now honors the (internal) max invocations of `eval', since + traps are supposed to be executed as if using `eval'. + pp. The $_ variable doesn't change when the shell executes a command that forks. + qq. The `kill' builtin now supports -sSIGNAME and -nSIGNUM, even though + conforming applications aren't supposed to use them. + rr. POSIX mode now enables the `shift_verbose' option. +- Modify patches + * bash-2.03-manual.patch + * bash-3.0-evalexp.patch + * bash-3.2-printf.patch + * bash-4.0-security.patch + * bash-4.1-completion.dif + * bash-4.3-2.4.4.patch + * bash-4.3-SJIS.patch + * bash-4.3-extra-import-func.patch + * bash-4.3-sigrestart.patch + * bash-5.0.dif +- Add temporary upstream patch upstream.patch + +--- +Thu Sep 20 08:56:46 UTC 2018 - Dr. Werner Fink + +- Update to bash 5.0 beta + a. The `wait' builtin can now wait for the last process substitution created. + b. There is an EPOCHSECONDS variable, which expands to the time in seconds + since the Unix epoch. + c. There is an EPOCHREALTIME variable, which expands to the time in seconds + since the Unix epoch with microsecond granularity. + d. New loadable builtins: rm, stat, fdflags. + e. BASH_ARGV0: a new variable that expands to $0 and sets $0 on assignment. + f. When supplied a numeric argument, the shell-expand-line bindable readline + command does not perform quote removal and suppresses command and process + substitution. + g. `history -d' understands negative arguments: negative arguments offset from + the end of the history list. + h. The `name' argument to the `coproc' reserved word now undergoes word + expansion, so unique coprocs can be created in loops. + i. A nameref name resolution loop in a function now resolves to a variable by
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-07-17 09:36:24 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Tue Jul 17 09:36:24 2018 rev:148 rq:621861 version:4.4 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2018-06-13 15:13:07.430398490 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-07-17 09:36:27.530557638 +0200 @@ -1,0 +2,5 @@ +Sat Jul 7 05:03:48 UTC 2018 - bwiedem...@suse.com + +- Add bash-memmove.patch to make bash.html build reproducible (boo#1100488) + +--- @@ -4 +9 @@ -- In patch bash-4.4.dif avoud setgroups(2) but use initgroups(3) (boo#1095670) +- In patch bash-4.4.dif avoid setgroups(2) but use initgroups(3) (boo#1095670) New: bash-memmove.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.IanlB6/_old 2018-07-17 09:36:28.482554319 +0200 +++ /var/tmp/diff_new_pack.IanlB6/_new 2018-07-17 09:36:28.482554319 +0200 @@ -83,6 +83,7 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch +Patch50:bash-memmove.patch %global _sysconfdir /etc %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash @@ -224,6 +225,7 @@ %patch48 -b .eif %endif %patch49 -p0 -b .pthtmp +%patch50 -p1 -b .mmv %patch0 -p0 -b .0 # This has to be always the same version as included in the bash its self rl1=($(sed -rn '/RL_READLINE_VERSION/p' lib/readline/readline.h)) ++ bash-memmove.patch ++ Author: Bernhard M. Wiedemann Date: 2018-07-07 strcpy can cause corruption when working on overlapping strings so we use memmove instead that handles this case correctly Index: bash-4.4/support/man2html.c === --- bash-4.4.orig/support/man2html.c +++ bash-4.4/support/man2html.c @@ -1992,7 +1993,7 @@ unescape (char *c) while (i < l && c[i]) { if (c[i] == '\a') { if (c[i+1]) - strcpy(c + i, c + i + 1); /* should be memmove */ + memmove(c + i, c + i + 1, strlen(c + i)); else { c[i] = '\0'; break;
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-06-13 15:13:01 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Wed Jun 13 15:13:01 2018 rev:147 rq:614491 version:4.4 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2018-04-22 14:35:35.117770563 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-06-13 15:13:07.430398490 +0200 @@ -1,0 +2,25 @@ +Mon Jun 4 09:21:15 UTC 2018 - wer...@suse.de + +- In patch bash-4.4.dif avoud setgroups(2) but use initgroups(3) (boo#1095670) + +--- +Sat Jun 2 17:17:13 UTC 2018 - avin...@opensuse.org + +- Add patch 20, 21, 22 and 23 to bash-4.4-patches.tar.bz2 + * 20: In circumstances involving long-running scripts that create +and reap many processes, it is possible for the hash table bash +uses to store exit statuses from asynchronous processes to +develop loops. This patch fixes the loop causes and adds code +to detect any future loops. + * 21: A SIGINT received inside a SIGINT trap handler can possibly +cause the shell to loop. + * 22: There are cases where a failing readline command (e.g., +delete-char at the end of a line) can cause a multi-character +key sequence to `back up' and attempt to re-read some of the +characters in the sequence. + * 23: When sourcing a file from an interactive shell, setting the +SIGINT handler to the default and typing ^C will cause the +shell to exit. +- remove bash-4.4-wait-sigint-handler.patch (upstreamed) + +--- Old: bash-4.4-wait-sigint-handler.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.FUXHGt/_old 2018-06-13 15:13:09.666316916 +0200 +++ /var/tmp/diff_new_pack.FUXHGt/_new 2018-06-13 15:13:09.670316770 +0200 @@ -23,9 +23,7 @@ BuildRequires: autoconf BuildRequires: bison BuildRequires: fdupes -%if %suse_version > 1220 BuildRequires: makeinfo -%endif BuildRequires: ncurses-devel BuildRequires: patchutils BuildRequires: pkg-config @@ -85,8 +83,6 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch -# PATCH-FIX-UPSTREAM bnc#1086247 -Patch50:bash-4.4-wait-sigint-handler.patch %global _sysconfdir /etc %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash @@ -228,7 +224,6 @@ %patch48 -b .eif %endif %patch49 -p0 -b .pthtmp -%patch50 -p0 -b .trap %patch0 -p0 -b .0 # This has to be always the same version as included in the bash its self rl1=($(sed -rn '/RL_READLINE_VERSION/p' lib/readline/readline.h)) ++ bash-4.4-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.4-patches/bash44-020 new/bash-4.4-patches/bash44-020 --- old/bash-4.4-patches/bash44-020 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.4-patches/bash44-020 2018-06-01 15:37:03.0 +0200 @@ -0,0 +1,177 @@ +BASH PATCH REPORT += + +Bash-Release: 4.4 +Patch-ID: bash44-020 + +Bug-Reported-by: Graham Northup +Bug-Reference-ID: <537530c3-61f0-349b-9de6-fa4e2487f...@clarkson.edu> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2017-02/msg00025.html + +Bug-Description: + +In circumstances involving long-running scripts that create and reap many +processes, it is possible for the hash table bash uses to store exit +statuses from asynchronous processes to develop loops. This patch fixes +the loop causes and adds code to detect any future loops. + +Patch (apply with `patch -p0'): + +*** ../bash-4.4-patched/jobs.c 2016-11-11 13:42:55.0 -0500 +--- jobs.c 2017-02-22 15:16:28.0 -0500 +*** +*** 813,818 +struct pidstat *ps; + +! bucket = pshash_getbucket (pid); +! psi = bgp_getindex (); +ps = &bgpids.storage[psi]; + +--- 796,815 +struct pidstat *ps; + +! /* bucket == existing chain of pids hashing to same value +! psi = where were going to put this pid/status */ +! +! bucket = pshash_getbucket (pid); /* index into pidstat_table */ +! psi = bgp_getindex (); /* bgpids.head, index into storage */ +! +! /* XXX - what if psi == *bucket? */ +! if (psi == *bucket) +! { +! #ifdef DEBUG +! internal_warning ("hashed pid %d (pid %d) collides with bgpids.head, skipping", psi, pid); +! #endif +! bgpids.storage[psi
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-04-22 14:35:33 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Sun Apr 22 14:35:33 2018 rev:146 rq:598555 version:4.4 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2018-03-22 11:52:38.308523301 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-04-22 14:35:35.117770563 +0200 @@ -1,0 +2,7 @@ +Wed Apr 18 10:49:26 UTC 2018 - wer...@suse.de + +- Add patch bash-4.4-wait-sigint-handler.patch to fix bug bsc#1086247 + that is repeating self inserting trap due external command in the + trap. + +--- New: bash-4.4-wait-sigint-handler.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.URzIcZ/_old 2018-04-22 14:35:36.045736981 +0200 +++ /var/tmp/diff_new_pack.URzIcZ/_new 2018-04-22 14:35:36.049736836 +0200 @@ -85,6 +85,8 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch +# PATCH-FIX-UPSTREAM bnc#1086247 +Patch50:bash-4.4-wait-sigint-handler.patch %global _sysconfdir /etc %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash @@ -226,6 +228,7 @@ %patch48 -b .eif %endif %patch49 -p0 -b .pthtmp +%patch50 -p0 -b .trap %patch0 -p0 -b .0 # This has to be always the same version as included in the bash its self rl1=($(sed -rn '/RL_READLINE_VERSION/p' lib/readline/readline.h)) ++ bash-4.4-wait-sigint-handler.patch ++ Repeating self-calling of traps due the combination of a non-interactive shell, a trap handler for SIGINT, an external process in the trap handler, and a SIGINT within the trap after the external process runs. --- jobs.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) --- jobs.c +++ jobs.c 2018-04-02 18:24:21.0 + @@ -2662,7 +2662,17 @@ wait_for (pid) wait_sigint_received = child_caught_sigint = 0; if (job_control == 0 || (subshell_environment&SUBSHELL_COMSUB)) { - old_sigint_handler = set_signal_handler (SIGINT, wait_sigint_handler); + SigHandler *temp_sigint_handler; + + temp_sigint_handler = set_signal_handler (SIGINT, wait_sigint_handler); + if (temp_sigint_handler == wait_sigint_handler) +{ +#if defined (DEBUG) + internal_warning ("wait_for: recursively setting old_sigint_handler to wait_sigint_handler: running_trap = %d", running_trap); +#endif +} + else + old_sigint_handler = temp_sigint_handler; waiting_for_child = 0; if (old_sigint_handler == SIG_IGN) set_signal_handler (SIGINT, old_sigint_handler);
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-03-22 11:52:33 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Thu Mar 22 11:52:33 2018 rev:145 rq:587961 version:4.4 Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2018-03-07 10:28:24.716039142 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-03-22 11:52:38.308523301 +0100 @@ -1,0 +2,28 @@ +Fri Mar 16 17:37:08 UTC 2018 - wer...@suse.de + +- Make sure that correct readline-devel version is used (current 7.0) + +--- +Fri Mar 16 06:22:31 UTC 2018 - wer...@suse.de + +- Correct documentation path + +--- +Mon Mar 12 15:28:24 UTC 2018 - wer...@suse.de + +- Due package split removed patches (for the bots) + * readline-6.2-xmalloc.dif + * readline-6.2-endpw.dif + * readline-6.3-destdir.patch + * readline-6.2-metamode.patch + * readline-7.0.dif + * readline-6.3-input.dif + * readline-5.2-conf.patch + * readline-6.3-rltrace.patch + +--- +Mon Mar 12 14:12:52 UTC 2018 - sch...@suse.de + +- Split readline off into its own package + +--- Old: readline-5.2-conf.patch readline-6.2-endpw.dif readline-6.2-metamode.patch readline-6.2-xmalloc.dif readline-6.3-destdir.patch readline-6.3-input.dif readline-6.3-rltrace.patch readline-7.0-patches.tar.bz2 readline-7.0.dif readline-7.0.tar.gz Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.AZMl7I/_old 2018-03-22 11:52:39.900466198 +0100 +++ /var/tmp/diff_new_pack.AZMl7I/_new 2018-03-22 11:52:39.904466055 +0100 @@ -29,29 +29,26 @@ BuildRequires: ncurses-devel BuildRequires: patchutils BuildRequires: pkg-config +# This has to be always the same version as included in the bash its self +BuildRequires: readline-devel == 7.0 BuildRequires: screen BuildRequires: sed -%define bash_vers 4.4 -%define rl_vers 7.0 %define bextend %nil -%define rextend %nil -Recommends: bash-lang = %bash_vers -# The package bash-completion is a source of -# bugs which will hit at most this package -#Recommends: bash-completion -Suggests: command-not-found -Recommends: bash-doc = %bash_vers Version:4.4 Release:0 Summary:The GNU Bourne-Again Shell License:GPL-3.0-or-later Group: System/Shells +Recommends: bash-lang = %version +# The package bash-completion is a source of +# bugs which will hit at most this package +#Recommends: bash-completion +Suggests: command-not-found +Recommends: bash-doc = %version Url:http://www.gnu.org/software/bash/bash.html # Git: http://git.savannah.gnu.org/cgit/bash.git -Source0:ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}%{bextend}.tar.gz -Source1: ftp://ftp.gnu.org/gnu/readline/readline-%{rl_vers}%{rextend}.tar.gz -Source2:bash-%{bash_vers}-patches.tar.bz2 -Source3:readline-%{rl_vers}-patches.tar.bz2 +Source0:ftp://ftp.gnu.org/gnu/bash/bash-%{version}%{bextend}.tar.gz +Source1:bash-%{version}-patches.tar.bz2 Source4:run-tests Source5:dot.bashrc Source6:dot.profile @@ -62,7 +59,7 @@ # http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00071.html # http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00073.html Source9:bash-4.2-history-myown.dif.bz2 -Patch0: bash-%{bash_vers}.dif +Patch0: bash-%{version}.dif Patch1: bash-2.03-manual.patch Patch2: bash-4.0-security.patch Patch3: bash-4.3-2.4.4.patch @@ -81,14 +78,6 @@ Patch16:bash-4.0-setlocale.dif # PATCH-EXTEND-SUSE bnc#828877 -- xterm resizing does not pass to all sub clients Patch18:bash-4.3-winch.dif -Patch20:readline-%{rl_vers}.dif -Patch21:readline-6.3-input.dif -Patch23:readline-5.2-conf.patch -Patch24:readline-6.2-metamode.patch -Patch25:readline-6.2-endpw.dif -Patch27:readline-6.2-xmalloc.dif -Patch30:readline-6.3-destdir.patch -Patch31:readline-6.3-rltrace.patch Patch40:bash-4.1-bash.bashrc.dif Patch46:man2html-no-timestamp.patch Patch47:bash-4.3-perl522.patch @@ -100,7 +89,6 @@ %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash %global _minsh 0 -%{expand: %%global rl_major %(echo %{rl_vers} | sed -r 's/.[0-
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-03-07 10:28:20 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Wed Mar 7 10:28:20 2018 rev:144 rq:580635 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2018-02-10 17:52:10.509146873 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-03-07 10:28:24.716039142 +0100 @@ -1,0 +2,11 @@ +Tue Feb 27 14:26:53 UTC 2018 - wer...@suse.de + +- Create readline-devel-static package to re-enable static libraries + again (boo#1082913) + +--- +Thu Feb 22 15:10:29 UTC 2018 - fv...@suse.com + +- Use %license (boo#1082318) + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.3qIDNm/_old 2018-03-07 10:28:26.435977102 +0100 +++ /var/tmp/diff_new_pack.3qIDNm/_new 2018-03-07 10:28:26.435977102 +0100 @@ -44,7 +44,7 @@ Version:4.4 Release:0 Summary:The GNU Bourne-Again Shell -License:GPL-3.0+ +License:GPL-3.0-or-later Group: System/Shells Url:http://www.gnu.org/software/bash/bash.html # Git: http://git.savannah.gnu.org/cgit/bash.git @@ -230,7 +230,6 @@ %package -n readline-devel Summary:Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ -Provides: bash:%{_libdir}/libreadline.a Version:%{rl_vers} Release:0 Requires: libreadline7 = %{rl_vers} @@ -246,6 +245,20 @@ This package contains all necessary include files and libraries needed to develop applications that require these. +%package -n readline-devel-static +Summary:Static library for Development +Group: Development/Libraries/C and C++ +Version:%{rl_vers} +Release:0 +Requires: ncurses-devel +Requires: readline-devel = %{rl_vers} +Recommends: readline-doc = %{rl_vers} +# + +%description -n readline-devel-static +This package contains the static library needed +to develop applications that require these. + %package -n readline-doc Summary:Documentation how to Use and Program with the Readline Library Group: System/Libraries @@ -426,7 +439,9 @@ LDFLAGS_FOR_BUILD="$LDFLAGS" export CC_FOR_BUILD CFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD CFLAGS LDFLAGS CC ./configure --build=%{_target_cpu}-suse-linux\ - --disable-static\ + --enable-static \ + --enable-shared \ + --enable-multibyte \ --prefix=%{_prefix} \ --with-curses \ --mandir=%{_mandir} \ @@ -519,6 +534,7 @@ --with-afs \ $SYSMALLOC \ --enable-job-control\ + --enable-net-redirections \ --enable-alias \ --enable-readline \ --enable-history\ @@ -562,7 +578,7 @@ pushd ../readline-%{rl_vers}%{rextend} %make_install htmldir=%{_defaultdocdir}/readline \ installdir=%{_defaultdocdir}/readline/examples - %make_install install-shared libdir=/%{_lib} linkagedir=%{_libdir} + %make_install install libdir=/%{_lib} linkagedir=%{_libdir} rm -rf %{buildroot}%{_defaultdocdir}/bash mkdir -p %{buildroot}%{_defaultdocdir}/bash chmod 0755 %{buildroot}/%{_lib}/libhistory.so.%{rl_vers} @@ -573,6 +589,9 @@ rm -vf %{buildroot}/%{_lib}/libreadline.so ln -sf /%{_lib}/libhistory.so.%{rl_vers} %{buildroot}/%{_libdir}/libhistory.so ln -sf /%{_lib}/libreadline.so.%{rl_vers} %{buildroot}/%{_libdir}/libreadline.so + mv -vf %{buildroot}/%{_lib}/libhistory.a %{buildroot}/%{_libdir}/libhistory.a + mv -vf %{buildroot}/%{_lib}/libreadline.a %{buildroot}/%{_libdir}/libreadline.a + rm -vrf %{buildroot}%{_datadir}/readline/ popd %make_install make -C examples/loadables/ install-supported DESTDIR=%{buildroot} libdir=/%{_lib} @@ -656,6 +675,7 @@ %files %defattr(-,root,root) +%license COPYING %config %attr(600,root,root) %{_sysconfdir}/skel/.bash_history %config %attr(644,root,root) %{_sysconfdir}/skel/.bashrc %config %attr(644,root,root) %{_sysconfdir}/skel/.profile @@ -702,6 +722,7 @@ %files -n libreadline7 %defattr(-,root,root) +%license COPYING /%{_lib}/libhistory.so.%{rl_major} /%{_lib}/libhistory.so.%{rl_vers} /%{_lib}/libreadline.so.%{rl_major} @@ -713,6 +734,11 @@ %{_libdir}/libhistory.so %{_libdir}/libreadline.so +%file
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-02-10 17:52:08 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Sat Feb 10 17:52:08 2018 rev:143 rq:573586 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2018-02-03 15:35:42.160427669 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-02-10 17:52:10.509146873 +0100 @@ -1,0 +2,8 @@ +Tue Feb 6 23:25:18 UTC 2018 - avin...@opensuse.org + +- Add patch 19 to bash-4.4-patches.tar.bz2 + * With certain values for PS1, especially those that wrap onto +three or more lines, readline will miscalculate the number of +invisible characters, leading to crashes and core dumps. + +--- Other differences: -- ++ bash-4.4-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.4-patches/bash44-019 new/bash-4.4-patches/bash44-019 --- old/bash-4.4-patches/bash44-019 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.4-patches/bash44-019 2018-02-06 22:23:47.0 +0100 @@ -0,0 +1,50 @@ +BASH PATCH REPORT += + +Bash-Release: 4.4 +Patch-ID: bash44-019 + +Bug-Reported-by: Kieran Grant +Bug-Reference-ID: +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2018-02/msg2.html + +Bug-Description: + +With certain values for PS1, especially those that wrap onto three or more +lines, readline will miscalculate the number of invisible characters, +leading to crashes and core dumps. + +Patch (apply with `patch -p0'): + +*** ../bash-4.4.18/lib/readline/display.c 2016-07-28 14:49:33.0 -0400 +--- lib/readline/display.c 2018-02-03 19:19:35.0 -0500 +*** +*** 772,776 +wadjust = (newlines == 0) + ? prompt_invis_chars_first_line +!: ((newlines == prompt_lines_estimate) ? wrap_offset : prompt_invis_chars_first_line); + +/* fix from Darin Johnson for prompt string with +--- 788,794 +wadjust = (newlines == 0) + ? prompt_invis_chars_first_line +!: ((newlines == prompt_lines_estimate) +! ? (wrap_offset - prompt_invis_chars_first_line) +! : 0); + +/* fix from Darin Johnson for prompt string with +*** ../bash-4.4/patchlevel.h 2016-06-22 14:51:03.0 -0400 +--- patchlevel.h 2016-10-01 11:01:28.0 -0400 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 18 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 19 + + #endif /* _PATCHLEVEL_H_ */
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-02-03 15:35:40 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Sat Feb 3 15:35:40 2018 rev:142 rq:570849 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2018-01-29 14:55:00.209401332 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-02-03 15:35:42.160427669 +0100 @@ -1,0 +2,22 @@ +Tue Jan 30 01:42:43 UTC 2018 - avin...@opensuse.org + +- Add patches 13-18 to bash-4.4-patches.tar.bz2 + * 13: If a here-document contains a command substitution, the +command substitution can get access to the file descriptor used +to write the here-document. + * 14: Under some circumstances, functions that return via the +`return' builtin do not clean up memory they allocated to keep +track of FIFOs. + * 15: Process substitution can leak internal quoting to the +parser in the invoked subshell. + * 16: Bash can perform trap processing while reading command +substitution output instead of waiting until the command +completes. + * 17: There is a memory leak when `read -e' is used to read a +line using readline. + * 18: Under certain circumstances (e.g., reading from /dev/zero), +read(2) will not return -1 even when interrupted by a signal. +The read builtin needs to check for signals in this case. +- partial cleanup with spec-cleaner + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.lKskwj/_old 2018-02-03 15:35:43.540363212 +0100 +++ /var/tmp/diff_new_pack.lKskwj/_new 2018-02-03 15:35:43.544363026 +0100 @@ -96,7 +96,6 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} %global _ldldir /%{_lib}/bash @@ -561,9 +560,9 @@ %install pushd ../readline-%{rl_vers}%{rextend} - make install htmldir=%{_defaultdocdir}/readline \ - installdir=%{_defaultdocdir}/readline/examples DESTDIR=%{buildroot} - make install-shared libdir=/%{_lib} linkagedir=%{_libdir} DESTDIR=%{buildroot} + %make_install htmldir=%{_defaultdocdir}/readline \ + installdir=%{_defaultdocdir}/readline/examples + %make_install install-shared libdir=/%{_lib} linkagedir=%{_libdir} rm -rf %{buildroot}%{_defaultdocdir}/bash mkdir -p %{buildroot}%{_defaultdocdir}/bash chmod 0755 %{buildroot}/%{_lib}/libhistory.so.%{rl_vers} @@ -575,7 +574,7 @@ ln -sf /%{_lib}/libhistory.so.%{rl_vers} %{buildroot}/%{_libdir}/libhistory.so ln -sf /%{_lib}/libreadline.so.%{rl_vers} %{buildroot}/%{_libdir}/libreadline.so popd - make install DESTDIR=%{buildroot} + %make_install make -C examples/loadables/ install-supported DESTDIR=%{buildroot} libdir=/%{_lib} rm -rf %{buildroot}%{_libdir}/bash rm -rf %{buildroot}/%{_lib}/pkgconfig ++ bash-4.4-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.4-patches/bash44-006 new/bash-4.4-patches/bash44-006 --- old/bash-4.4-patches/bash44-006 2017-01-19 20:32:41.0 +0100 +++ new/bash-4.4-patches/bash44-006 2018-01-30 08:17:05.715017954 +0100 @@ -15,7 +15,7 @@ Patch (apply with `patch -p0'): -*** ../bash-4.4-patched/builtins/pushd.def 2016-01-25 13:31:49.0 -0500 +*** builtins/pushd.def 2016-01-25 13:31:49.0 -0500 --- builtins/pushd.def 2016-10-28 10:46:49.0 -0400 *** *** 366,370 @@ -42,7 +42,7 @@ + } free (pushd_directory_list[i]); directory_list_offset--; -*** ../bash-4.4/patchlevel.h 2016-06-22 14:51:03.0 -0400 +*** patchlevel.h 2016-06-22 14:51:03.0 -0400 --- patchlevel.h 2016-10-01 11:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.4-patches/bash44-007 new/bash-4.4-patches/bash44-007 --- old/bash-4.4-patches/bash44-007 2017-01-19 20:32:54.0 +0100 +++ new/bash-4.4-patches/bash44-007 2018-01-30 08:17:05.759017112 +0100 @@ -16,7 +16,7 @@ Patch (apply with `patch -p0'): -*** ../bash-4.4-patched/bashline.c 2016-08-05 21:44:05.0 -0400 +*** bashline.c 2016-08-05 21:44:05.0 -0400 --- bashline.c 2017-01-19 13:15:51.0 -0500 *** *** 143,147 @@ -121,7 +121,7 @@ ! wl = exp
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2018-01-29 14:54:57 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Mon Jan 29 14:54:57 2018 rev:141 rq:569479 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2017-12-12 21:19:17.573076938 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2018-01-29 14:55:00.209401332 +0100 @@ -1,0 +2,6 @@ +Wed Jan 24 12:40:17 UTC 2018 - wer...@suse.de + +- Modify patch bash-4.3-pathtemp.patch to avoid crash at full + file system (boo#1076909) + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.gxQE1Q/_old 2018-01-29 14:55:01.681332565 +0100 +++ /var/tmp/diff_new_pack.gxQE1Q/_new 2018-01-29 14:55:01.685332378 +0100 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++ bash-4.3-pathtemp.patch ++ --- /var/tmp/diff_new_pack.gxQE1Q/_old 2018-01-29 14:55:01.781327893 +0100 +++ /var/tmp/diff_new_pack.gxQE1Q/_new 2018-01-29 14:55:01.781327893 +0100 @@ -1,9 +1,9 @@ --- - lib/sh/tmpfile.c | 43 +++ - 1 file changed, 43 insertions(+) + lib/sh/tmpfile.c | 49 - + 1 file changed, 48 insertions(+), 1 deletion(-) --- lib/sh/tmpfile.c -+++ lib/sh/tmpfile.c 2016-07-14 12:22:06.681051058 + lib/sh/tmpfile.c 2018-01-24 12:38:42.410481352 + @@ -36,6 +36,14 @@ #include #include @@ -60,14 +60,16 @@ static char * get_tmpdir (flags) int flags; -@@ -188,6 +223,7 @@ sh_mktmpfd (nameroot, flags, namep) +@@ -186,7 +221,8 @@ sh_mktmpfd (nameroot, flags, namep) + { + char *filename, *tdir, *lroot; int fd, tdlen; - - filename = (char *)xmalloc (PATH_MAX + 1); +- ++ +enospace: + filename = (char *)xmalloc (PATH_MAX + 1); tdir = get_tmpdir (flags); tdlen = strlen (tdir); - @@ -201,6 +237,10 @@ sh_mktmpfd (nameroot, flags, namep) free (filename); filename = NULL; @@ -79,12 +81,16 @@ if (namep) *namep = filename; return fd; -@@ -219,6 +259,9 @@ sh_mktmpfd (nameroot, flags, namep) +@@ -219,6 +259,13 @@ sh_mktmpfd (nameroot, flags, namep) } while (fd < 0 && errno == EEXIST); + if (fd < 0 && errno == ENOSPC && emergency_sys_tmpdir()) -+goto enospace; ++{ ++ free (filename); ++ filename = NULL; ++ goto enospace; ++} + if (namep) *namep = filename;
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2017-12-12 21:19:15 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Tue Dec 12 21:19:15 2017 rev:140 rq:555156 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2017-10-02 16:43:57.760659703 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2017-12-12 21:19:17.573076938 +0100 @@ -1,0 +2,5 @@ +Fri Dec 8 06:12:43 UTC 2017 - wer...@suse.de + +- Enable multibyte characters by default + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.d6owQI/_old 2017-12-12 21:19:20.048957416 +0100 +++ /var/tmp/diff_new_pack.d6owQI/_new 2017-12-12 21:19:20.048957416 +0100 @@ -534,6 +534,7 @@ --enable-command-timing \ --enable-disabled-builtins \ --disable-strict-posix-default \ + --enable-multibyte \ --enable-separate-helpfiles=%{_datadir}/bash/helpfiles \ $READLINE profilecflags=CFLAGS="$CFLAGS"
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2017-10-02 16:43:53 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Mon Oct 2 16:43:53 2017 rev:139 rq:528605 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2017-06-02 10:30:57.400045373 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2017-10-02 16:43:57.760659703 +0200 @@ -1,0 +2,7 @@ +Mon Sep 25 09:13:32 UTC 2017 - wer...@suse.de + +- Modify patch bash-4.4.dif to let bashline.h install as well as + this header file is included by general.h due to the same patch + (boo#1060069) + +--- Other differences: -- ++ bash-4.4.dif ++ --- /var/tmp/diff_new_pack.IbU5KH/_old 2017-10-02 16:43:59.688388670 +0200 +++ /var/tmp/diff_new_pack.IbU5KH/_new 2017-10-02 16:43:59.688388670 +0200 @@ -1,4 +1,5 @@ --- + Makefile.in|2 +- config-top.h | 16 ++-- doc/Makefile.in|2 +- doc/bash.1 |7 +-- @@ -12,10 +13,21 @@ tests/glob.tests |4 ++-- tests/run-intl |2 +- tests/run-read |2 +- - 13 files changed, 35 insertions(+), 21 deletions(-) + 14 files changed, 36 insertions(+), 22 deletions(-) +--- Makefile.in Makefile.in2017-09-25 09:08:48.341515472 + +@@ -447,7 +447,7 @@ SOURCES = $(CSOURCES) $(HSOURCES) $(BUI + # headers in top-level source directory that get installed by install-headers + INSTALLED_HEADERS = shell.h bashjmp.h command.h syntax.h general.h error.h \ + variables.h array.h assoc.h arrayfunc.h quit.h dispose_cmd.h \ +- make_cmd.h subst.h sig.h externs.h builtins.h \ ++ make_cmd.h subst.h sig.h externs.h builtins.h bashline.h \ + bashtypes.h xmalloc.h config-top.h config-bot.h \ + bashintl.h bashansi.h bashjmp.h alias.h hashlib.h \ + conftypes.h unwind_prot.h jobs.h siglist.h --- config-top.h -+++ config-top.h 2016-09-16 10:38:13.570285185 + config-top.h 2017-09-25 09:08:06.210296290 + @@ -60,17 +60,21 @@ due to EPIPE. */ /* #define DONT_REPORT_BROKEN_PIPE_WRITE_ERRORS */ @@ -66,7 +78,7 @@ /* Define if you want the case-capitalizing operators (~[~]) and the `capcase' variable attribute (declare -c). */ --- doc/Makefile.in -+++ doc/Makefile.in2016-09-16 10:38:13.570285185 + doc/Makefile.in2017-09-25 09:08:06.210296290 + @@ -154,7 +154,7 @@ BASHREF_FILES = $(srcdir)/bashref.texi $ # $(RM) $@ # -${TEXI2PDF} $< @@ -77,7 +89,7 @@ everything: all pdf --- doc/bash.1 -+++ doc/bash.1 2016-09-16 10:38:13.570285185 + doc/bash.1 2017-09-25 09:08:06.214296216 + @@ -5253,8 +5253,8 @@ file (the \fIinputrc\fP file). The name of this file is taken from the value of the .SM @@ -100,7 +112,7 @@ .SH AUTHORS Brian Fox, Free Software Foundation --- general.h -+++ general.h 2016-09-16 10:38:17.614209958 + general.h 2017-09-25 09:08:06.214296216 + @@ -21,10 +21,13 @@ #if !defined (_GENERAL_H_) #define _GENERAL_H_ @@ -116,7 +128,7 @@ #if defined (HAVE_SYS_RESOURCE_H) && defined (RLIMTYPE) # if defined (HAVE_SYS_TIME_H) --- parse.y -+++ parse.y2016-09-16 10:38:17.614209958 + parse.y2017-09-25 09:08:06.214296216 + @@ -1426,7 +1426,7 @@ input_file_descriptor () #if defined (READLINE) @@ -127,7 +139,7 @@ static int --- shell.c -+++ shell.c2016-09-16 10:38:17.614209958 + shell.c2017-09-25 09:08:06.214296216 + @@ -45,6 +45,7 @@ #if defined (HAVE_UNISTD_H) # include @@ -154,7 +166,7 @@ { e = errno; --- support/bashbug.sh -+++ support/bashbug.sh 2016-09-16 10:38:17.614209958 + support/bashbug.sh 2017-09-25 09:08:06.214296216 + @@ -1,4 +1,4 @@ -#!/bin/sh - +#!/bin/bash - @@ -162,7 +174,7 @@ # bashbug - create a bug report and mail it to the bug address # --- support/man2html.c -+++ support/man2html.c 2016-09-16 10:38:17.618209884 + support/man2html.c 2017-09-25 09:08:06.214296216 + @@ -78,6 +78,7 @@ #include #include @@ -172,7 +184,7 @@ #define NULL_TERMINATED(n) ((n) + 1) --- support/rlvers.sh -+++ support/rlvers.sh 2016-09-16 10:38:17.618209884 + support/rlvers.sh 2017-09-25 09:08:06.214296216 + @@ -27,10 +27,10 @@ TDIR=$TMPDIR/rlvers # defaults @@ -188,7 +200,7 @@ # cannot rely on the presence of getopts while [ $# -gt 0 ]; do --- support/shobj-conf -+++ support/shobj-conf 2016-09-16 10:38:17.618209884 + support/s
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2017-06-02 10:30:54 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Fri Jun 2 10:30:54 2017 rev:138 rq:498391 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2017-05-17 10:45:16.031526044 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2017-06-02 10:30:57.400045373 +0200 @@ -1,0 +2,10 @@ +Thu May 25 17:33:36 UTC 2017 - bwiedem...@suse.com + +- Make build reproducible in spite of profile based optimizations (boo#1040589) + +--- +Wed May 24 12:42:20 UTC 2017 - bwiedem...@suse.com + +- Allow to disable do_profiling in builds (related to boo#1040589) + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.i2Mdwe/_old 2017-06-02 10:30:59.547741908 +0200 +++ /var/tmp/diff_new_pack.i2Mdwe/_new 2017-06-02 10:30:59.551741343 +0200 @@ -536,7 +536,11 @@ --disable-strict-posix-default \ --enable-separate-helpfiles=%{_datadir}/bash/helpfiles \ $READLINE - make %{?do_profiling:CFLAGS="$CFLAGS %cflags_profile_generate"} \ + profilecflags=CFLAGS="$CFLAGS" +%if 0%{?do_profiling} + profilecflags=CFLAGS="$CFLAGS %cflags_profile_generate" +%endif + make "$profilecflags" \ all printenv recho zecho xcase TMPDIR=$(mktemp -d /tmp/bash.XX) || exit 1 > $SCREENLOG @@ -545,7 +549,12 @@ SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \ screen -D -m make TESTSCRIPT=%{SOURCE4} check kill -TERM $pid - make %{?do_profiling:CFLAGS="$CFLAGS %cflags_profile_feedback -fprofile-correction" clean} all +%if 0%{?do_profiling} + rm -f jobs.gcda + profilecflags=CFLAGS="$CFLAGS %cflags_profile_feedback -fprofile-correction" + clean=clean +%endif + make "$profilecflags" $clean all make -C examples/loadables/ make documentation
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2017-05-17 10:45:13 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Wed May 17 10:45:13 2017 rev:137 rq:491274 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2017-03-05 17:49:23.355930552 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2017-05-17 10:45:16.031526044 +0200 @@ -1,0 +2,10 @@ +Wed Apr 26 16:04:15 UTC 2017 - wer...@suse.de + +- Simplify patch readline-5.2-conf.patch + +--- +Tue Apr 25 09:18:16 UTC 2017 - wer...@suse.de + +- Do not throw info and manual pages away + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.BotzrA/_old 2017-05-17 10:45:17.595306066 +0200 +++ /var/tmp/diff_new_pack.BotzrA/_new 2017-05-17 10:45:17.599305504 +0200 @@ -610,8 +610,6 @@ # remove unpackaged files rm -fv %{buildroot}%{_libdir}/libhistory.so.* rm -fv %{buildroot}%{_libdir}/libreadline.so.* - rm -fv %{buildroot}%{_infodir}/rluserman.info.gz - rm -fv %{buildroot}%{_mandir}/man3/history.3* rm -fv %{buildroot}%{_defaultdocdir}/readline/INSTALL mkdir -p %{buildroot}%{_sysconfdir}/skel install -m 644 %{S:5}%{buildroot}%{_sysconfdir}/skel/.bashrc @@ -634,10 +632,12 @@ %post -n readline-doc %install_info --info-dir=%{_infodir} %{_infodir}/history.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/readline.info.gz +%install_info --info-dir=%{_infodir} %{_infodir}/rluserman.info.gz %preun -n readline-doc %install_info_delete --info-dir=%{_infodir} %{_infodir}/history.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/readline.info.gz +%install_info_delete --info-dir=%{_infodir} %{_infodir}/rluserman.info.gz %clean LD_LIBRARY_PATH=%{buildroot}/%{_lib} \ @@ -665,11 +665,11 @@ %files -n bash-doc %defattr(-,root,root) -%doc %{_infodir}/bash.info.gz -%doc %{_mandir}/man1/bash.1.gz -%doc %{_mandir}/man1/bashbuiltins.1.gz -%doc %{_mandir}/man1/bashbug.1.gz -%doc %{_mandir}/man1/rbash.1.gz +%doc %{_infodir}/bash.info* +%doc %{_mandir}/man1/bash.1* +%doc %{_mandir}/man1/bashbuiltins.1* +%doc %{_mandir}/man1/bashbug.1* +%doc %{_mandir}/man1/rbash.1* %doc %{_defaultdocdir}/bash/ %if 0%suse_version >= 1020 @@ -703,12 +703,14 @@ %{_incdir}/readline/ %{_libdir}/libhistory.so %{_libdir}/libreadline.so -%doc %{_mandir}/man3/readline.3.gz %files -n readline-doc %defattr(-,root,root) -%doc %{_infodir}/history.info.gz -%doc %{_infodir}/readline.info.gz +%doc %{_infodir}/history.info* +%doc %{_infodir}/readline.info* +%doc %{_infodir}/rluserman.info* +%doc %{_mandir}/man3/history.3* +%doc %{_mandir}/man3/readline.3* %doc %{_defaultdocdir}/readline/ %changelog ++ readline-5.2-conf.patch ++ --- /var/tmp/diff_new_pack.BotzrA/_old 2017-05-17 10:45:17.803276811 +0200 +++ /var/tmp/diff_new_pack.BotzrA/_new 2017-05-17 10:45:17.807276248 +0200 @@ -1,11 +1,11 @@ --- - lib/readline/bind.c | 49 + - lib/readline/doc/rluser.texi |3 ++- - lib/readline/rlconf.h|2 +- - 3 files changed, 44 insertions(+), 10 deletions(-) + lib/readline/bind.c | 55 ++- + lib/readline/doc/rluser.texi |3 +- + lib/readline/rlconf.h|2 - + 3 files changed, 47 insertions(+), 13 deletions(-) --- lib/readline/bind.c -+++ lib/readline/bind.c2006-11-13 16:20:23.0 + lib/readline/bind.c2017-04-26 13:07:22.115249970 + @@ -826,6 +826,9 @@ rl_function_of_keyseq (keyseq, map, type /* The last key bindings file read. */ static char *last_readline_init_file = (char *)NULL; @@ -32,32 +32,29 @@ 4. /etc/inputrc If the file existed and could be opened and read, 0 is returned, otherwise errno is returned. */ -@@ -907,16 +913,37 @@ rl_read_init_file (filename) - if (filename == 0) - filename = last_readline_init_file; +@@ -905,18 +911,39 @@ rl_read_init_file (filename) + { + /* Default the filename. */ if (filename == 0) +-filename = last_readline_init_file; +- if (filename == 0) -filename = sh_get_env_value ("INPUTRC"); +- if (filename == 0 || *filename == 0) +{ -+ filename = sh_get_env_value ("INPUTRC"); -+ if (filename && !strncmp(SYS_INPUTRC, filename, strlen(SYS_INPUTRC))) -+ { -+struct stat st; -+char *default_inputrc = tilde_expand(DEFAULT_INPUTRC); -+ -+if ((stat(default_inputrc, &st) == 0)) -+ { -+fil
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2017-03-05 17:49:22 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Sun Mar 5 17:49:22 2017 rev:136 rq:460239 version:unknown Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2017-02-08 12:11:43.437918825 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2017-03-05 17:49:23.355930552 +0100 @@ -1,0 +2,6 @@ +Fri Feb 17 14:08:47 UTC 2017 - wer...@suse.de + +- Remove bash-4.0-async-bnc523667.dif as this one is fixed (and + was disabled and nobody had reported trouble) + +--- Old: bash-4.0-async-bnc523667.dif Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.lPfvAl/_old 2017-03-05 17:49:24.715738091 +0100 +++ /var/tmp/diff_new_pack.lPfvAl/_new 2017-03-05 17:49:24.715738091 +0100 @@ -71,8 +71,6 @@ # Disabled Patch6: bash-4.2-endpw.dif Patch7: bash-4.3-decl.patch -# Is this fixed meanwhile? -Patch8: bash-4.0-async-bnc523667.dif Patch9: bash-4.3-include-unistd.dif Patch10:bash-3.2-printf.patch Patch11:bash-4.3-loadables.dif @@ -285,7 +283,6 @@ %patch5 -p0 -b .warnlc #%patch6 -p0 -b .endpw %patch7 -p0 -b .decl -#%patch8 -p0 -b .async %patch9 -p0 -b .unistd %patch10 -p0 -b .printf %patch11 -p0 -b .plugins
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2017-02-08 12:11:42 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2016-12-22 15:59:16.911163772 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2017-02-08 12:11:43.437918825 +0100 @@ -1,0 +2,56 @@ +Mon Jan 30 16:11:13 UTC 2017 - wer...@suse.de + +- Add upstream patch readline70-002 which replace old one + There is a race condition in add_history() that can be triggered by a fatal + signal arriving between the time the history length is updated and the time + the history list update is completed. A later attempt to reference an + invalid history entry can cause a crash. +- Add upstream patch readline70-003 + Readline-7.0 uses pselect(2) to allow readline to handle signals that do not + interrupt read(2), such as SIGALRM, before reading another character. The + signal mask used in the pselect call did not take into account signals the + calling application blocked before calling readline(). + +--- +Fri Jan 27 17:31:59 UTC 2017 - wer...@suse.de + +- Add upstream patch bash44-006 + Out-of-range negative offsets to popd can cause the shell to crash + attempting to free an invalid memory block. +- Remove patch popd-offset-overflow.patch to use bash44-006 +- Add upstream patch bash44-007 + When performing filename completion, bash dequotes the directory + name being completed, which can result in match failures and + potential unwanted expansion. +- Duplicate bash44-007 as readline70-002 as it seems to be missed +- Add upstream patch bash44-008 + Under certain circumstances, bash will evaluate arithmetic + expressions as part of reading an expression token even when + evaluation is suppressed. This happens while evaluating a + conditional expression and skipping over the failed branch of the + expression. +- Add upstream patch bash44-009 + There is a race condition in add_history() that can be triggered + by a fatal signal arriving between the time the history length + is updated and the time the history list update is completed. + A later attempt to reference an invalid history entry can cause + a crash. +- Add upstream patch bash44-010 + Depending on compiler optimizations and behavior, the `read' + builtin may not save partial input when a timeout occurs. +- Add upstream patch bash44-011 + Subshells begun to run command and process substitutions may + attempt to set the terminal's process group to an incorrect + value if they receive a fatal signal. This depends on the + behavior of the process that starts the shell. +- Add upstream patch bash44-012 + When -N is used, the input is not supposed to be split using + $IFS, but leading and trailing IFS whitespace was still removed. + +--- +Thu Jan 19 12:20:06 UTC 2017 - wer...@suse.de + +- Remove -L option on screen call dues API change, now we depend + on environment variables only. + +--- Old: popd-offset-overflow.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.mebPJh/_old 2017-02-08 12:11:45.317653868 +0100 +++ /var/tmp/diff_new_pack.mebPJh/_new 2017-02-08 12:11:45.317653868 +0100 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -92,8 +92,6 @@ Patch30:readline-6.3-destdir.patch Patch31:readline-6.3-rltrace.patch Patch40:bash-4.1-bash.bashrc.dif -# PATCH-FIX-UPSTREAM boo#1010845 -- CVE-2016-9401: bash: popd controlled free (Segmentation fault) -Patch41:popd-offset-overflow.patch Patch46:man2html-no-timestamp.patch Patch47:bash-4.3-perl522.patch # PATCH-FIX-SUSE @@ -302,7 +300,6 @@ #%patch25 -p0 -b .endpw %patch31 -p0 -b .tmp %patch40 -p0 -b .bashrc -%patch41 -p0 -b .popd %patch46 -p0 -b .notimestamp %patch47 -p0 -b .perl522 %if %{with import_function} @@ -343,6 +340,7 @@ SCREENLOG=${SCREENDIR}/log cat > $SCREENRC<<-EOF deflogin off + deflog on logfile $SCREENLOG logfile flush 1 logtstamp off @@ -548,7 +546,7 @@ tail -q -s 0.5 -f $SCREENLOG & pid=$! env -i HOME=$PWD TERM=$TERM LD_LIBRARY_PATH=$LD_RUN_PATH TMPDIR=$TMPDIR
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2016-11-28 15:02:37 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2016-10-26 13:25:41.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2016-11-28 15:02:39.0 +0100 @@ -1,0 +2,29 @@ +Thu Nov 17 09:27:21 UTC 2016 - wer...@suse.de + +- Add upstream patch bash44-001 + Bash-4.4 changed the way the history list is initially allocated to reduce + the number of reallocations and copies. Users who set HISTSIZE to a very + large number to essentially unlimit the size of the history list will get + memory allocation errors +- Add upstream patch bash44-002 + Bash-4.4 warns when discarding NUL bytes in command substitution output + instead of silently dropping them. This patch changes the warnings from + one per NUL byte encountered to one warning per command substitution. +- Drop no-null-warning.patch as bash44-002 is official replacement +- Add upstream patch bash44-003 + Specially-crafted input, in this case an incomplete pathname expansion + bracket expression containing an invalid collating symbol, can cause the + shell to crash. +- Add upstream patch bash44-004 + There is a race condition that can result in bash referencing freed memory + when freeing data associated with the last process substitution. +- Add upstream patch bash44-005 + Under certain circumstances, a simple command is optimized to eliminate a + fork, resulting in an EXIT trap not being executed. (boo#1008459) +- Add upstream patch readline70-001 + Readline-7.0 changed the way the history list is initially allocated to reduce + the number of reallocations and copies. Users who set the readline + history-size variable to a very large number to essentially unlimit the size + of the history list will get memory allocation errors + +--- Old: no-null-warning.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.9ib77V/_old 2016-11-28 15:02:40.0 +0100 +++ /var/tmp/diff_new_pack.9ib77V/_new 2016-11-28 15:02:40.0 +0100 @@ -98,8 +98,6 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch -# PATCH-FIX-OPENSUSE Don't warn about null bytes in command substitution -Patch50:no-null-warning.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -308,7 +306,6 @@ %patch48 -b .eif %endif %patch49 -p0 -b .pthtmp -%patch50 -p1 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{rextend} for patch in ../readline-%{rl_vers}-patches/*; do ++ bash-4.4-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.4-patches/bash44-001 new/bash-4.4-patches/bash44-001 --- old/bash-4.4-patches/bash44-001 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.4-patches/bash44-001 2016-11-11 20:24:59.0 +0100 @@ -0,0 +1,60 @@ +BASH PATCH REPORT += + +Bash-Release: 4.4 +Patch-ID: bash44-001 + +Bug-Reported-by: Sean Zha +Bug-Reference-ID: +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2016-09/msg00107.html + +Bug-Description: + +Bash-4.4 changed the way the history list is initially allocated to reduce +the number of reallocations and copies. Users who set HISTSIZE to a very +large number to essentially unlimit the size of the history list will get +memory allocation errors + +Patch (apply with `patch -p0'): + +*** ../bash-4.4/lib/readline/history.c 2015-12-28 13:50:31.0 -0500 +--- lib/readline/history.c 2016-09-30 14:28:40.0 -0400 +*** +*** 58,61 +--- 58,63 + #define DEFAULT_HISTORY_INITIAL_SIZE 502 + ++ #define MAX_HISTORY_INITIAL_SIZE 8192 ++ + /* The number of slots to increase the_history by. */ + #define DEFAULT_HISTORY_GROW_SIZE 50 +*** +*** 308,312 + { + if (history_stifled && history_max_entries > 0) +! history_size = history_max_entries + 2; + else + history_size = DEFAULT_HISTORY_INITIAL_SIZE; +--- 310,316 + { + if (history_stifled && history_max_entries > 0) +! history_size = (history_max_entries > MAX_HISTORY_INITIAL_SIZE) +! ? MAX_HISTORY_INITIAL_SIZE +!
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2016-10-26 13:25:39 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2016-08-25 09:48:26.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2016-10-26 13:25:41.0 +0200 @@ -1,0 +2,38 @@ +Mon Oct 24 13:51:10 UTC 2016 - sch...@suse.de + +- no-null-warning.patch: Don't warn about null bytes in command + substitution + +--- +Tue Oct 4 12:59:48 UTC 2016 - wer...@suse.de + +- Avoid confusing library path + +--- +Fri Sep 16 10:41:30 UTC 2016 - wer...@suse.de + +- Update bash 4.4 final + * Latest bug fixes since 4.4 rc2 +- Update readline 7.0 final + * Latest bug fixes since 7.0 rc2 + * New application-callable function: rl_pending_signal(): returns the signal +number of any signal readline has caught but not yet handled. + * New application-settable variable: rl_persistent_signal_handlers: if set + to a non-zero value, readline will enable the readline-6.2 signal handler + behavior in callback mode: handlers are installed when + rl_callback_handler_install is called and removed removed when a complete + line has been read. +- Drop patch bash-4.3-async-bnc971410.dif as this one is part of 4.4 +- Drop patch bash-3.2-longjmp.dif as now long time be fixed +- Drop patch bash-4.3-headers.dif as loadables now simply work +- Drop readline-6.1-wrap.patch as this seems to be fixed +- Disable patch bash-4.0-async-bnc523667.dif for now as it seems to be fixed + in an other way + +--- +Wed Sep 14 09:00:14 UTC 2016 - wer...@suse.de + +- Update bash 4.4 rc2 -- Bugfixes +- Update readline 7.0 rc2 -- Bugfixes + +--- @@ -9 +47,26 @@ -Tue Jun 28 09:27:24 UTC 2016 - wer...@suse.de +Thu Jul 14 12:43:08 UTC 2016 - wer...@suse.de + +- Update bash 4.4 beta 2 + * Value conversions (arithmetic expansions, case modification, etc.) now +happen when assigning elements of an array using compound assignment. + * There is a new option settable in config-top.h that makes multiple +directory arguments to `cd' a fatal error. + * Bash now uses mktemp() when creating internal temporary files; it produces +a warning at build time on many Linux systems. +- Update to readline library 7.0 beta 2 (not enabled as not standalone) + * The default binding for ^W in vi mode now uses word boundaries specified +by Posix (vi-unix-word-rubout is bindable command name). + * rl_clear_visible_line: new application-callable function; clears all +screen lines occupied by the current visible readline line. + * rl_tty_set_echoing: application-callable function that controls whether +or not readline thinks it is echoing terminal output. + * Handle >| and strings of digits preceding and following redirection +specifications as single tokens when tokenizing the line for history +expansion. + * Fixed a bug with displaying completions when the prefix display length +is greater than the length of the completions to be displayed. + * The :p history modifier now applies to the entire line, so any expansion +specifying :p causes the line to be printed instead of expanded. + +--- +Tue Mar 8 14:49:41 UTC 2016 - wer...@suse.de @@ -11,20 +74,133 @@ -- Add upstream patch bash43-046 - An incorrect conversion from an indexed to associative array can - result in a core dump. -- Add upstream patch bash43-045 - If a file open attempted as part of a redirection fails because it - is interrupted by a signal, the shell needs to process any pending - traps to allow the redirection to be canceled. -- Add upstream patch bash43-044 - A typo prevents the `compat42' shopt option from working as intended. -- Add upstream patch bash43-043 - When the lastpipe option is enabled, the last component can contain - nested pipelines and cause a segmentation fault under certain - circumestances. - -Fri Apr 1 08:38:48 UTC 2016 - wer...@suse.de - -- Add patch bash-4.3-async-bnc971410.dif - this is a backport from bash-4.4-rc1 and might help to avoid to - run onto a not existing child pointer, bnc#971410. +- Update bash 4.4 release candidate 1 + * There is now a settable configuration #define that will cause the shell +to exit if the shell is running setuid without the -p option and setuid +to the real uid fails. + * Co
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2016-08-25 09:48:24 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2016-07-16 22:09:39.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2016-08-25 09:48:26.0 +0200 @@ -1,0 +2,7 @@ +Mon Aug 1 13:47:05 UTC 2016 - wer...@suse.de + +- Make clear that the files /etc/profile as well as /etc/bash.bashrc + may source other files as well even if the bash does not. + Therefore modify patch bash-4.1-bash.bashrc.dif (bsc#959755) + +--- Other differences: -- ++ bash-4.1-bash.bashrc.dif ++ --- /var/tmp/diff_new_pack.YGbbMs/_old 2016-08-25 09:48:28.0 +0200 +++ /var/tmp/diff_new_pack.YGbbMs/_new 2016-08-25 09:48:28.0 +0200 @@ -8,9 +8,29 @@ |this in its INVOCATION section. I've checked the source code and it's |hard coded to execute /etc/bash.bashrc (SYS_BASHRC macro) | +|BSC#959755 - man page on bash needs some clarification. +| +|Werner Fink 2016-08-01 12:40:06 UTC +| +|Make clear that the files /etc/profile as well as /etc/bash.bashrc may source +|other files as well even if the bash does not. +| +--- + bash.1 | 15 --- + 1 file changed, 12 insertions(+), 3 deletions(-) + --- doc/bash.1 -+++ doc/bash.1 2010-02-18 09:47:36.864126675 + -@@ -323,8 +323,8 @@ exists. doc/bash.1 2016-08-01 12:40:06.771618500 + +@@ -324,6 +324,8 @@ and executes commands from the first one + The + .B \-\-noprofile + option may be used when the shell is started to inhibit this behavior. ++Please note that the file \fI/etc/profile\fP includes an autodetection shell ++code wether it has to source \fI/etc/bash.bashrc\fP as well as \fI~/.bashrc\fP. + .PP + When a login shell exits, + .B bash +@@ -332,13 +334,19 @@ exists. .PP When an interactive shell that is not a login shell is started, .B bash @@ -21,7 +41,18 @@ .B \-\-norc option. The \fB\-\-rcfile\fP \fIfile\fP option will force -@@ -415,7 +415,8 @@ daemon, usually \fIrshd\fP, or the secur + .B bash + to read and execute commands from \fIfile\fP instead of \fI~/.bashrc\fP. ++Please note that the file \fI/etc/bash.bashrc\fP includes an autodetection shell ++code wether it is used for by a remote OpenSSH SSH client like ++.BR ssh (1) ++or ++.BR slogin (1) ++to source the local \fI/etc/profile\fP if not already done. + .PP + When + .B bash +@@ -424,7 +432,8 @@ daemon, usually \fIrshd\fP, or the secur If .B bash determines it is being run in this fashion, it reads and executes
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2016-07-16 22:09:38 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2016-05-26 23:52:27.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2016-07-16 22:09:39.0 +0200 @@ -1,0 +2,17 @@ +Tue Jun 28 09:27:24 UTC 2016 - wer...@suse.de + +- Add upstream patch bash43-046 + An incorrect conversion from an indexed to associative array can + result in a core dump. +- Add upstream patch bash43-045 + If a file open attempted as part of a redirection fails because it + is interrupted by a signal, the shell needs to process any pending + traps to allow the redirection to be canceled. +- Add upstream patch bash43-044 + A typo prevents the `compat42' shopt option from working as intended. +- Add upstream patch bash43-043 + When the lastpipe option is enabled, the last component can contain + nested pipelines and cause a segmentation fault under certain + circumestances. + +--- Other differences: -- ++ bash-4.3-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.3-patches/bash43-043 new/bash-4.3-patches/bash43-043 --- old/bash-4.3-patches/bash43-043 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.3-patches/bash43-043 2016-06-17 15:39:17.0 +0200 @@ -0,0 +1,59 @@ +BASH PATCH REPORT += + +Bash-Release: 4.3 +Patch-ID: bash43-043 + +Bug-Reported-by: lolilolicon +Bug-Reference-ID: +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-08/msg00040.html + +Bug-Description: + +When the lastpipe option is enabled, the last component can contain nested +pipelines and cause a segmentation fault under certain circumestances. + +Patch (apply with `patch -p0'): + +*** ../bash-4.3-patched/execute_cmd.c 2014-07-30 10:26:52.0 -0400 +--- execute_cmd.c 2014-08-15 08:55:24.0 -0400 +*** +*** 2406,2412 + { + #if defined (JOB_CONTROL) +! append_process (savestring (the_printed_command), dollar_dollar_pid, exec_result, lastpipe_jid); +! #endif +lstdin = wait_for (lastpid); + #if defined (JOB_CONTROL) +/* If wait_for removes the job from the jobs table, use result of last +--- 2433,2447 + { + #if defined (JOB_CONTROL) +! if (INVALID_JOB (lastpipe_jid) == 0) +! { +! append_process (savestring (the_printed_command_except_trap), dollar_dollar_pid, exec_result, lastpipe_jid); +! lstdin = wait_for (lastpid); +! } +! else +! lstdin = wait_for_single_pid (lastpid); /* checks bgpids list */ +! #else +lstdin = wait_for (lastpid); ++ #endif ++ + #if defined (JOB_CONTROL) +/* If wait_for removes the job from the jobs table, use result of last +*** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.0 -0500 +--- patchlevel.h 2014-03-20 20:01:28.0 -0400 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 42 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 43 + + #endif /* _PATCHLEVEL_H_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.3-patches/bash43-044 new/bash-4.3-patches/bash43-044 --- old/bash-4.3-patches/bash43-044 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.3-patches/bash43-044 2016-06-17 15:39:32.0 +0200 @@ -0,0 +1,48 @@ +BASH PATCH REPORT += + +Bash-Release: 4.3 +Patch-ID: bash43-044 + +Bug-Reported-by: Ondrej Oprala +Bug-Reference-ID: <539ed55b.2080...@redhat.com> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-06/msg00046.html + +Bug-Description: + +A typo prevents the `compat42' shopt option from working as intended. + +Patch (apply with `patch -p0'): + +diff -rC 2 bash-4.3.42/builtins/shopt.def bash-4.3.43/builtins/shopt.def +*** bash-4.3.42/builtins/shopt.def 2013-02-27 09:43:20.0 -0500 +--- builtins/shopt.def 2015-10-16 11:25:28.0 -0400 +*** +*** 161,165 +{ "compat40", &shopt_compat40, set_compatibility_level }, +{ "compat41", &shopt_compat41, set_compatibility_lev
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2016-05-26 23:52:26 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2015-10-28 17:15:12.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2016-05-26 23:52:27.0 +0200 @@ -1,0 +2,7 @@ +Fri Apr 1 08:38:48 UTC 2016 - wer...@suse.de + +- Add patch bash-4.3-async-bnc971410.dif + this is a backport from bash-4.4-rc1 and might help to avoid to + run onto a not existing child pointer, bnc#971410. + +--- New: bash-4.3-async-bnc971410.dif Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.tKW1LD/_old 2016-05-26 23:52:28.0 +0200 +++ /var/tmp/diff_new_pack.tKW1LD/_new 2016-05-26 23:52:28.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -101,6 +101,8 @@ Patch48:bash-4.3-extra-import-func.patch # PATCH-EXTEND-SUSE Allow root to clean file system if filled up Patch49:bash-4.3-pathtemp.patch +# PATCH-FIX-UPSTREAM bnc#971410 -- bash script teminates unexpectedly throwing backtrace +Patch50:bash-4.3-async-bnc971410.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -322,6 +324,7 @@ %patch48 %endif %patch49 +%patch50 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} for patch in ../readline-%{rl_vers}-patches/*; do @@ -600,6 +603,7 @@ ln -sf bash %{buildroot}/bin/sh ln -sf ../../bin/bash %{buildroot}%{_bindir}/sh %endif +install -m 755 bash %{buildroot}/bin/bash ln -sf ../../bin/bash %{buildroot}%{_bindir}/rbash install -m 644 COMPAT NEWS%{buildroot}%{_defaultdocdir}/bash/ install -m 644 COPYING%{buildroot}%{_defaultdocdir}/bash/ @@ -673,7 +677,7 @@ %config %attr(600,root,root) %{_sysconfdir}/skel/.bash_history %config %attr(644,root,root) %{_sysconfdir}/skel/.bashrc %config %attr(644,root,root) %{_sysconfdir}/skel/.profile -/bin/bash +%attr(755,root,root) /bin/bash /bin/sh %dir %{_sysconfdir}/bash_completion.d %{_bindir}/bashbug ++ bash-4.3-async-bnc971410.dif ++ This is a backport from bash-4.4-rc1 and might help to avoid to run onto a not existing child pointer, bnc#971410. --- jobs.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- jobs.c +++ jobs.c 2016-04-01 08:32:53.898981856 + @@ -2564,12 +2564,12 @@ itrace("wait_for: blocking wait for %d r of the last child in the pipeline is the significant one. If the command or job was terminated by a signal, note that value also. */ termination_state = (job != NO_JOB) ? job_exit_status (job) - : process_exit_status (child->status); + : (child ? process_exit_status (child->status) : EXECUTION_SUCCESS); last_command_exit_signal = (job != NO_JOB) ? job_exit_signal (job) -: process_exit_signal (child->status); +: (child ? process_exit_signal (child->status) : 0); /* XXX */ - if ((job != NO_JOB && JOBSTATE (job) == JSTOPPED) || WIFSTOPPED (child->status)) + if ((job != NO_JOB && JOBSTATE (job) == JSTOPPED) || (child && WIFSTOPPED (child->status))) termination_state = 128 + WSTOPSIG (child->status); if (job == NO_JOB || IS_JOBCONTROL (job))
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2015-10-28 17:15:10 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2015-09-11 09:00:04.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2015-10-28 17:15:12.0 +0100 @@ -1,0 +2,15 @@ +Mon Oct 19 13:38:58 UTC 2015 - wer...@suse.de + +- Define the USE_MKTEMP and USE_MKSTEMP cpp macros as the + implementation is already there. +- Add patch bash-4.3-pathtemp.patch to allow root to clear the + file systems. Otherwise the completion does not work if /tmp + if full (ENOSPC for here documents) + +--- +Fri Oct 16 13:02:27 UTC 2015 - wer...@suse.de + +- Remove --hash-size options as there is no any change in the final + binary nor library anymore + +--- New: bash-4.3-pathtemp.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.g96QeS/_old 2015-10-28 17:15:13.0 +0100 +++ /var/tmp/diff_new_pack.g96QeS/_new 2015-10-28 17:15:13.0 +0100 @@ -99,6 +99,8 @@ Patch47:bash-4.3-perl522.patch # PATCH-FIX-SUSE Patch48:bash-4.3-extra-import-func.patch +# PATCH-EXTEND-SUSE Allow root to clean file system if filled up +Patch49:bash-4.3-pathtemp.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -319,6 +321,7 @@ %if %{with import_function} %patch48 %endif +%patch49 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} for patch in ../readline-%{rl_vers}-patches/*; do @@ -397,13 +400,7 @@ esac set +o noclobber } - echo 'int main () { return !(sizeof(void*) >= 8); }' | gcc -x c -o test64 - - if ./test64 ; then - LARGEFILE="" - else - LARGEFILE="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" - fi - rm -f ./test64 + LARGEFILE="$(getconf LFS_CFLAGS)" (cat > dyn.map)<<-'EOF' { *; @@ -442,7 +439,6 @@ cflags -DIMPORT_FUNCTIONS_DEF=0 CFLAGS cflags -Wl,--as-needed LDFLAGS cflags -Wl,-O2 LDFLAGS - cflags -Wl,--hash-size=8599LDFLAGS cflags -Wl,-rpath,%{_ldldir}/%{bash_vers} LDFLAGS cflags -Wl,--version-script=${PWD}/rl.map LDFLAGS cflags -Wl,--dynamic-list=${PWD}/dyn.mapLDFLAGS @@ -474,7 +470,6 @@ ln -sf ../readline-%{rl_vers} readline LD_LIBRARY_PATH=$PWD/../readline-%{rl_vers} export LD_LIBRARY_PATH - LDFLAGS="${LDFLAGS/hash-size=8599/hash-size=16699}" CC="gcc -I$PWD -L$PWD/../readline-%{rl_vers}" %if %_minsh cflags -Os CFLAGS ++ bash-4.3-pathtemp.patch ++ --- lib/sh/tmpfile.c | 43 +++ 1 file changed, 43 insertions(+) --- lib/sh/tmpfile.c +++ lib/sh/tmpfile.c2015-10-19 13:35:30.869518731 + @@ -36,6 +36,14 @@ #include #include +#if defined(__linux__) +# include +# include +# ifndef TMPFS_MAGIC +#define TMPFS_MAGIC 0x01021994 +# endif +#endif + #include #ifndef errno @@ -60,6 +68,8 @@ static unsigned long filenum = 1L; static char * get_sys_tmpdir () { + static int doshm; + if (sys_tmpdir) return sys_tmpdir; @@ -86,6 +96,31 @@ get_sys_tmpdir () return sys_tmpdir; } +#if defined(__linux__) +static int +emergency_sys_tmpdir () +{ + static char *shm = "/dev/shm"; + static size_t pgsz; + struct statfs fs; + static int doshm; + + if (getuid() != 0) +return 0; + + if (doshm) +return 0; + + doshm++; + + if (statfs(shm, &fs) < 0 || fs.f_type != TMPFS_MAGIC || eaccess(shm, W_OK|X_OK)) +return 0; + + sys_tmpdir = shm; + return 1; +} +#endif + static char * get_tmpdir (flags) int flags; @@ -164,6 +199,7 @@ sh_mktmpfd (nameroot, flags, namep) int fd, tdlen; filename = (char *)xmalloc (PATH_MAX + 1); +enospace: tdir = get_tmpdir (flags); tdlen = strlen (tdir); @@ -177,6 +213,10 @@ sh_mktmpfd (nameroot, flags, namep) free (filename); filename = NULL; } + + if (fd < 0 && errno == ENOSPC && emergency_sys_tmpdir()) +goto enospace; + if (namep) *namep = filename; return fd; @@ -194,6 +234,9 @@ sh_mktmpfd (nameroot, flags, namep) } while (fd < 0 && errno == EEXIST); + if (fd < 0 && errno == ENOSPC && emergency_sys_tmpdir()) +goto enospace; + if (namep) *namep = filename; else ++ bash-4.3.dif ++ --- /var/tmp/diff_new_pack.g96QeS/_old 2015-10-28 17:15:14.0 +0100 +++ /var/tmp/diff_new_pack.g96Qe
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2015-09-11 09:00:03 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2015-07-21 13:23:30.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2015-09-11 09:00:04.0 +0200 @@ -1,0 +2,21 @@ +Mon Aug 31 11:23:11 UTC 2015 - wer...@suse.de + +- Add upstream patch bash43-039 + Using the output of `declare -p' when run in a function can result in variables + that are invisible to `declare -p'. This problem occurs when an assignment + builtin such as `declare' receives a quoted compound array assignment as one of + its arguments. +- Add upstream patch bash43-040 + There is a memory leak that occurs when bash expands an array reference on + the rhs of an assignment statement. +- Add upstream patch bash43-041 + There are several out-of-bounds read errors that occur when completing command + lines where assignment statements appear before the command name. The first + two appear only when programmable completion is enabled; the last one only + happens when listing possible completions. +- Add upstream patch bash43-042 + There is a problem when parsing command substitutions containing `case' + commands within pipelines that causes the parser to not correctly identify + the end of the command substitution. + +--- Other differences: -- ++ bash-4.3-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.3-patches/bash43-028 new/bash-4.3-patches/bash43-028 --- old/bash-4.3-patches/bash43-028 2014-10-01 19:29:53.0 +0200 +++ new/bash-4.3-patches/bash43-028 2015-08-31 13:33:17.0 +0200 @@ -16,7 +16,7 @@ Patch (apply with `patch -p0'): -*** ../bash-4.3-patched/parse.y2014-09-25 23:02:35.0 -0400 +*** parse.y2014-09-25 23:02:35.0 -0400 --- parse.y2014-09-29 16:47:03.0 -0400 *** *** 169,172 @@ -156,7 +156,7 @@ + void gather_here_documents () -*** ../bash-4.3.27/y.tab.c 2014-10-01 11:38:24.0 -0400 +*** y.tab.c2014-10-01 11:38:24.0 -0400 --- y.tab.c2014-10-01 12:46:11.0 -0400 *** *** 169,173 @@ -2248,7 +2248,7 @@ } #endif /* HANDLE_MULTIBYTE */ + -*** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.0 -0500 +*** patchlevel.h 2012-12-29 10:47:57.0 -0500 --- patchlevel.h 2014-03-20 20:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.3-patches/bash43-029 new/bash-4.3-patches/bash43-029 --- old/bash-4.3-patches/bash43-029 2014-10-03 04:14:34.0 +0200 +++ new/bash-4.3-patches/bash43-029 2015-08-31 13:33:17.0 +0200 @@ -17,7 +17,7 @@ Patch (apply with `patch -p0'): -*** ../bash-4.3.28/make_cmd.c 2011-12-16 08:08:01.0 -0500 +*** make_cmd.c 2011-12-16 08:08:01.0 -0500 --- make_cmd.c 2014-10-02 11:24:23.0 -0400 *** *** 693,696 @@ -27,7 +27,7 @@ + temp->here_doc_eof = 0; temp->instruction = instruction; temp->flags = 0; -*** ../bash-4.3.28/copy_cmd.c 2009-09-11 16:28:02.0 -0400 +*** copy_cmd.c 2009-09-11 16:28:02.0 -0400 --- copy_cmd.c 2014-10-02 11:24:23.0 -0400 *** *** 127,131 @@ -42,7 +42,7 @@ ! new_redirect->here_doc_eof = redirect->here_doc_eof ? savestring (redirect->here_doc_eof) : 0; /*FALLTHROUGH*/ case r_reading_string: -*** ../bash-4.3/patchlevel.h 2012-12-29 10:47:57.0 -0500 +*** patchlevel.h 2012-12-29 10:47:57.0 -0500 --- patchlevel.h 2014-03-20 20:01:28.0 -0400 *** *** 26,30 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.3-patches/bash43-030 new/bash-4.3-patches/bash43-030 --- old/bash-4.3-patches/bash43-030 2014-10-06 01:01:17.0 +0200 +++ new/bash-4.3-patches/bash43-030 2015-08-31 13:33:18.0 +0200 @@ -16,7 +16,7 @@ Patch (apply with `patch -p0'): -*** ../bash-4.3.29/builtins/evalstring.c 2014-10-01 12:57:47.0 -0400 +*** builtins/evalstring.c 2014-10-01 12:57:47.0 -0400 --- builtins/evalstring.c 2014-10-03 11:57:04.0 -0400 *** *** 309,318 @@ -70,7 +70,7 @@ ! } } } -*** ../bash-4.3.29/parse.y 20
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2015-07-21 13:23:28 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2015-05-30 12:32:52.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2015-07-21 13:23:30.0 +0200 @@ -1,0 +2,6 @@ +Wed Jul 1 08:31:09 UTC 2015 - co...@suse.com + +- add bash-4.3-perl522.patch to fix texi2html for perl 5.22 + (defined(@array) has been deprecated since at least 2012) + +--- New: bash-4.3-perl522.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.ddJjxy/_old 2015-07-21 13:23:31.0 +0200 +++ /var/tmp/diff_new_pack.ddJjxy/_new 2015-07-21 13:23:31.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -96,6 +96,7 @@ Patch31:readline-6.3-rltrace.patch Patch40:bash-4.1-bash.bashrc.dif Patch46:man2html-no-timestamp.patch +Patch47:bash-4.3-perl522.patch # PATCH-FIX-SUSE Patch48:bash-4.3-extra-import-func.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -314,6 +315,7 @@ %patch31 -p0 -b .tmp %patch40 -p0 -b .bashrc %patch46 -p0 -b .notimestamp +%patch47 -p0 -b .perl522 %if %{with import_function} %patch48 %endif ++ bash-4.3-perl522.patch ++ From: co...@suse.com perl 5.22 makes the long deprecated defined(@array) an hard error --- support/texi2html +++ support/texi2html @@ -4855,9 +4855,9 @@ sub update_sec_num { my $ret; $level--; # here we start at 0 -if ($name =~ /^appendix/ || defined(@appendix_sec_num)) { +if ($name =~ /^appendix/ || @appendix_sec_num) { # appendix style - if (defined(@appendix_sec_num)) { + if (@appendix_sec_num) { &incr_sec_num($level, @appendix_sec_num); } else { @appendix_sec_num = ('A', 0, 0, 0); @@ -4865,7 +4865,7 @@ sub update_sec_num { $ret = join('.', @appendix_sec_num[0..$level]); } else { # normal style - if (defined(@normal_sec_num)) + if (@normal_sec_num) { &incr_sec_num($level, @normal_sec_num); }
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2015-05-30 12:32:50 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2015-05-20 23:15:27.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2015-05-30 12:32:52.0 +0200 @@ -1,0 +2,23 @@ +Thu May 28 08:50:30 UTC 2015 - wer...@suse.de + +- Add upstream patch bash43-034 + If neither the -f nor -v options is supplied to unset, and a name argument is + found to be a function and unset, subsequent name arguments are not treated as + variables before attempting to unset a function by that name. +- Add upstream patch bash43-035 + A locale with a long name can trigger a buffer overflow and core dump. This + applies on systems that do not have locale_charset in libc, are not using + GNU libiconv, and are not using the libintl that ships with bash in lib/intl. +- Add upstream patch bash43-036 + When evaluating and setting integer variables, and the assignment fails to + create a variable (for example, when performing an operation on an array + variable with an invalid subscript), bash attempts to dereference a null + pointer, causing a segmentation violation. +- Add upstream patch bash43-037 + If an associative array uses `@' or `*' as a subscript, `declare -p' produces + output that cannot be reused as input. +- Add upstream patch bash43-038 + There are a number of instances where `time' is not recognized as a reserved + word when the shell grammar says it should be. + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.S9K94g/_old 2015-05-30 12:32:53.0 +0200 +++ /var/tmp/diff_new_pack.S9K94g/_new 2015-05-30 12:32:53.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++ bash-4.3-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.3-patches/bash43-034 new/bash-4.3-patches/bash43-034 --- old/bash-4.3-patches/bash43-034 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.3-patches/bash43-034 2015-05-19 20:52:17.0 +0200 @@ -0,0 +1,90 @@ +BASH PATCH REPORT += + +Bash-Release: 4.3 +Patch-ID: bash43-034 + +Bug-Reported-by: Dreamcat4 +Bug-Reference-ID: +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2015-05/msg1.html + +Bug-Description: + +If neither the -f nor -v options is supplied to unset, and a name argument is +found to be a function and unset, subsequent name arguments are not treated as +variables before attempting to unset a function by that name. + +Patch (apply with `patch -p0'): + +*** ../bash-4.3-patched/builtins/set.def 2013-04-19 07:20:34.0 -0400 +--- builtins/set.def 2015-05-05 13:25:36.0 -0400 +*** +*** 752,758 +--- 797,805 + { +int unset_function, unset_variable, unset_array, opt, nameref, any_failed; ++ int global_unset_func, global_unset_var; +char *name; + +unset_function = unset_variable = unset_array = nameref = any_failed = 0; ++ global_unset_func = global_unset_var = 0; + +reset_internal_getopt (); +*** +*** 762,769 + { + case 'f': +!unset_function = 1; + break; + case 'v': +!unset_variable = 1; + break; + case 'n': +--- 809,816 + { + case 'f': +!global_unset_func = 1; + break; + case 'v': +!global_unset_var = 1; + break; + case 'n': +*** +*** 778,782 +list = loptend; + +! if (unset_function && unset_variable) + { +builtin_error (_("cannot simultaneously unset a function and a variable")); +--- 825,829 +list = loptend; + +! if (global_unset_func && global_unset_var) + { +builtin_error (_("cannot simultaneously unset a function and a variable")); +*** +*** 796,799 +--- 843,849 +name = list->word->word; + ++ unset_function = global_unset_func; ++ unset_variable = global_unset_var; ++ + #if defined (ARRAY_VARS) +unset_array = 0; + +*** ../bash-4.3/patchlevel.h 2012-
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2015-05-20 23:15:26 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2015-03-23 12:12:12.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2015-05-20 23:15:27.0 +0200 @@ -1,0 +2,5 @@ +Mon May 18 06:10:49 UTC 2015 - meiss...@suse.com + +- move info deletion to %preun sections + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.ezCwKR/_old 2015-05-20 23:15:28.0 +0200 +++ /var/tmp/diff_new_pack.ezCwKR/_new 2015-05-20 23:15:28.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -650,7 +650,7 @@ %post -n bash-doc %install_info --info-dir=%{_infodir} %{_infodir}/bash.info.gz -%postun -n bash-doc +%preun -n bash-doc %install_info_delete --info-dir=%{_infodir} %{_infodir}/bash.info.gz %post -n libreadline6 -p /sbin/ldconfig @@ -661,7 +661,7 @@ %install_info --info-dir=%{_infodir} %{_infodir}/history.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/readline.info.gz -%postun -n readline-doc +%preun -n readline-doc %install_info_delete --info-dir=%{_infodir} %{_infodir}/history.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/readline.info.gz
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2015-03-23 12:12:10 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2015-03-05 18:17:49.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2015-03-23 12:12:12.0 +0100 @@ -1,0 +2,17 @@ +Wed Mar 4 22:52:17 CET 2015 - jdelv...@suse.de + +- bash-4.3-loadables.dif: One more warning fixed, in + examples/loadables/logname.c. +- bash-4.3-loadables.dif: Reverted one warning fix, which was + introducing another warning and possibly a bug. + +--- +Wed Mar 4 11:30:12 CET 2015 - jdelv...@suse.de + +- bash-4.3-loadables.dif: Split changes to shell.h to a separate + patch "bash-4.3-include-unistd.dif", as the loadables build just + fine without these changes. +- bash-4.3-loadables.dif: Drop all header file inclusion fixups, + upstream fixed the problem differently 5 years ago. + +--- New: bash-4.3-include-unistd.dif Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.ma9z7a/_old 2015-03-23 12:12:13.0 +0100 +++ /var/tmp/diff_new_pack.ma9z7a/_new 2015-03-23 12:12:13.0 +0100 @@ -73,6 +73,7 @@ Patch6: bash-4.2-endpw.dif Patch7: bash-4.3-decl.patch Patch8: bash-4.0-async-bnc523667.dif +Patch9: bash-4.3-include-unistd.dif Patch10:bash-3.2-printf.patch Patch11:bash-4.3-loadables.dif Patch12:bash-4.1-completion.dif @@ -295,6 +296,7 @@ #%patch6 -p0 -b .endpw %patch7 -p0 -b .decl %patch8 -p0 -b .async +%patch9 -p0 -b .unistd %patch10 -p0 -b .printf %patch11 -p0 -b .plugins %patch12 -p0 -b .completion ++ bash-4.3-include-unistd.dif ++ This change was originally part of patch bash-4.3-loadables.dif. However the loadables build just fine with this change, so it may still be needed but does not belong to that patch. --- shell.h.orig +++ shell.h @@ -22,6 +22,9 @@ #include "config.h" #endif +#include +#include + #include "bashjmp.h" #include "command.h" ++ bash-4.3-loadables.dif ++ 632 lines (skipped) between /work/SRC/openSUSE:Factory/bash/bash-4.3-loadables.dif and /work/SRC/openSUSE:Factory/.bash.new/bash-4.3-loadables.dif -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2015-03-05 17:04:24 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2014-10-15 16:19:32.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2015-03-05 18:17:49.0 +0100 @@ -2 +2 @@ -Mon Oct 6 08:07:48 UTC 2014 - wer...@suse.de +Wed Feb 18 15:14:47 UTC 2015 - wer...@suse.de @@ -4,3 +4,2 @@ -- Replace patches bash-4.2-heredoc-eof-delim.patch and - bash-4.2-parse-exportfunc.patch with the official upstream - patch levels bash42-052 and bash42-053 +- Do not restart all signal handlers for bash 4.3 as this breaks + trap handler in subshells waotiug for a process @@ -9 +8 @@ -Thu Oct 2 13:11:50 UTC 2014 - wer...@suse.de +Fri Jan 16 16:53:44 UTC 2015 - wer...@suse.de @@ -11,2 +10 @@ -- Replace patch bash-4.2-CVE-2014-7187.patch with upstream patch - level bash42-051 +- Remove -DMUST_UNBLOCK_CHLD(=1) as this breaks waitchild(2) on linux @@ -15 +13 @@ -Wed Oct 1 12:12:55 UTC 2014 - wer...@suse.de +Fri Jan 9 13:11:03 UTC 2015 - wer...@suse.de @@ -17,5 +15,15 @@ -- Add patches - bash-4.2-heredoc-eof-delim.patch for bsc#898812, CVE-2014-6277: - more troubles with functions - bash-4.2-parse-exportfunc.patch for bsc#898884, CVE-2014-6278: - code execution after original 6271 fix +- Add upstream patch bash43-031 + The new nameref assignment functionality introduced in bash-4.3 did not perform + enough validation on the variable value and would create variables with + invalid names. +- Add upstream patch bash43-032 + When bash is running in Posix mode, it allows signals -- including SIGCHLD -- + to interrupt the `wait' builtin, as Posix requires. However, the interrupt + causes bash to not run a SIGCHLD trap for all exited children. This patch + fixes the issue and restores the documented behavior in Posix mode. +- Add upstream patch bash43-033 + Bash does not clean up the terminal state in all cases where bash or + readline modifies it and bash is subsequently terminated by a fatal signal. + This happens when the `read' builtin modifies the terminal settings, both + when readline is active and when it is not. It occurs most often when a script + installs a trap that exits on a signal without re-sending the signal to itself. @@ -24 +32 @@ -Tue Sep 30 13:49:12 UTC 2014 - wer...@suse.de +Wed Dec 3 15:05:14 CET 2014 - jdelv...@suse.de @@ -26,2 +34,42 @@ -- Make bash-4.2-extra-import-func.patch an optional patch due - instruction +- Fix the sed command that fixes up the patch headers. It was + printing a duplicate header line, which suprisingly did not + confuse patch, but could in the future. +- Fix all patches that had the duplicate header line issue. + +--- +Tue Nov 4 12:27:30 UTC 2014 - wer...@suse.de + +- Use tail command to follow run-tests instead of a simpe cat command + +--- +Fri Oct 24 12:53:04 UTC 2014 - wer...@suse.de + +- Really remove obsolete patches + +--- +Fri Oct 24 04:16:32 UTC 2014 - br...@aljex.com + +- Skip autoconf on OS 10.2 or older + +--- +Wed Oct 22 13:44:23 UTC 2014 - wer...@suse.de + +- Avoid fdupes on SLES-10 + +--- +Wed Oct 22 12:53:11 UTC 2014 - wer...@suse.de + +- Bump bash version to 4.3 + +--- +Tue Oct 21 21:18:20 UTC 2014 - br...@aljex.com + +- Allow building on targets from SL 10.1 to current since it's free + +--- +Mon Oct 6 08:38:54 UTC 2014 - wer...@suse.de + +- Add upstream patches + bash43-030 which fixes CVE-2014-6278 + bash43-029 which fixes CVE-2014-6277 + bash43-028 which fixes CVE-2014-7186/CVE-2014-7187 @@ -32,5 +79,0 @@ -- Remove and replace patches - bash-4.2-CVE-2014-6271.patch - bash-4.2-BSC898604.patch - bash-4.2-CVE-2014-7169.patch - with bash upstream patch 48, patch 49, and patch 50 @@ -40,0 +84 @@ +- Rename bash-4.2-extra-import-func.patch to bash-4.3-extra-import-func.patch @@ -43 +87 @@ -Fri Sep 26 11:07:24 UTC 2014 - wer...@suse.de +Mon Sep 29 12:19:29 UTC 2014 - wer...@suse.de @@ -45,6 +89,7 @@ -- Add patches - bash-4.2-BSC898604.patch for bsc#898604: functions via environment - hardening - bash-4.2-CVE-2014-7169.patch for bsc#898346, CVE-2014-7169: - incremental parsing fix for function environment issue - bash-4.2-CVE-2014-7187.patch for bsc#898603, CVE-201
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-10-15 16:19:27 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2014-09-29 12:40:46.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-10-15 16:19:32.0 +0200 @@ -1,0 +2,41 @@ +Mon Oct 6 08:07:48 UTC 2014 - wer...@suse.de + +- Replace patches bash-4.2-heredoc-eof-delim.patch and + bash-4.2-parse-exportfunc.patch with the official upstream + patch levels bash42-052 and bash42-053 + +--- +Thu Oct 2 13:11:50 UTC 2014 - wer...@suse.de + +- Replace patch bash-4.2-CVE-2014-7187.patch with upstream patch + level bash42-051 + +--- +Wed Oct 1 12:12:55 UTC 2014 - wer...@suse.de + +- Add patches + bash-4.2-heredoc-eof-delim.patch for bsc#898812, CVE-2014-6277: + more troubles with functions + bash-4.2-parse-exportfunc.patch for bsc#898884, CVE-2014-6278: + code execution after original 6271 fix + +--- +Tue Sep 30 13:49:12 UTC 2014 - wer...@suse.de + +- Make bash-4.2-extra-import-func.patch an optional patch due + instruction + +--- +Tue Sep 30 11:45:52 UTC 2014 - wer...@suse.de + +- Remove and replace patches + bash-4.2-CVE-2014-6271.patch + bash-4.2-BSC898604.patch + bash-4.2-CVE-2014-7169.patch + with bash upstream patch 48, patch 49, and patch 50 +- Add patch bash-4.2-extra-import-func.patch which is based on the + BSD patch of Christos. As further enhancements the option + import-functions is mentioned in the manual page and a shopt + switch is added to enable and disable import-functions on the fly + +--- Old: bash-4.2-BSC898604.patch bash-4.2-CVE-2014-6271.patch bash-4.2-CVE-2014-7169.patch bash-4.2-CVE-2014-7187.patch New: bash-4.2-extra-import-func.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.MoxLyF/_old 2014-10-15 16:19:35.0 +0200 +++ /var/tmp/diff_new_pack.MoxLyF/_new 2014-10-15 16:19:35.0 +0200 @@ -16,6 +16,8 @@ # +%bcond_with import_function + Name: bash BuildRequires: audit-devel BuildRequires: autoconf @@ -99,11 +101,8 @@ Patch43:audit-rl-patch Patch46:man2html-no-timestamp.patch Patch47:config-guess-sub-update.patch -# PATCH-FIX-UPSTREAM bnc#895475 -- bnc#896776, CVE-2014-6271: unexpected code execution with environment variables -Patch48:bash-4.2-CVE-2014-6271.patch -Patch49:bash-4.2-BSC898604.patch -Patch50:bash-4.2-CVE-2014-7169.patch -Patch51:bash-4.2-CVE-2014-7187.patch +# PATCH-FIX-SUSE CVE-2014-6271 +Patch48:bash-4.2-extra-import-func.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -324,11 +323,10 @@ %patch42 -p1 -b .audit %endif %patch46 -p0 -b .notimestamp -%patch47 -%patch48 -p2 -%patch49 -p0 -%patch50 -p0 -%patch51 -p0 +%patch47 -p0 +%if %{with import_function} +%patch48 -p0 +%endif %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} for patch in ../readline-%{rl_vers}-patches/*; do @@ -435,6 +433,7 @@ cflags -ftree-loop-linear CFLAGS cflags -pipe CFLAGS cflags -DBNC382214=0 CFLAGS + cflags -DIMPORT_FUNCTIONS_DEF=0 CFLAGS cflags -Wl,--as-needed LDFLAGS cflags -Wl,-O2 LDFLAGS cflags -Wl,--hash-size=8599LDFLAGS @@ -560,10 +559,10 @@ all printenv recho zecho xcase TMPDIR=$(mktemp -d /tmp/bash.XX) || exit 1 > $SCREENLOG + tail -q -s 0.5 -f $SCREENLOG & pid=$! env -i HOME=$PWD TERM=$TERM LD_LIBRARY_PATH=$LD_LIBRARY_PATH TMPDIR=$TMPDIR \ SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \ screen -L -D -m make TESTSCRIPT=%{SOURCE4} check - cat $SCREENLOG make %{?do_profiling:CFLAGS="$CFLAGS %cflags_profile_feedback" clean} all make -C examples/loadables/ make documentation ++ bash-4.2-extra-import-func.patch ++ --- builtins/shopt.def |2 ++ doc/bash.1 |7 +++ shell.c|2 ++ variables.c| 13 - 4 files changed, 23 insertions(+), 1 deletion(-) --- shell.c +++ shell.c 2014-09-25 20:11:51.0 + @@ -225,6 +225,7 @@ int posixly_correct = 1;/* Non-zero mea #else int posixly_correct = 0;
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-09-29 12:40:44 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2014-09-28 19:53:55.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-09-29 12:40:46.0 +0200 @@ -1,0 +2,11 @@ +Fri Sep 26 11:07:24 UTC 2014 - wer...@suse.de + +- Add patches + bash-4.2-BSC898604.patch for bsc#898604: functions via environment + hardening + bash-4.2-CVE-2014-7169.patch for bsc#898346, CVE-2014-7169: + incremental parsing fix for function environment issue + bash-4.2-CVE-2014-7187.patch for bsc#898603, CVE-2014-7186, + CVE-2014-7187: bad handling of HERE documents and for loop issue + +--- New: bash-4.2-BSC898604.patch bash-4.2-CVE-2014-7169.patch bash-4.2-CVE-2014-7187.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.2HePQg/_old 2014-09-29 12:40:48.0 +0200 +++ /var/tmp/diff_new_pack.2HePQg/_new 2014-09-29 12:40:48.0 +0200 @@ -101,6 +101,9 @@ Patch47:config-guess-sub-update.patch # PATCH-FIX-UPSTREAM bnc#895475 -- bnc#896776, CVE-2014-6271: unexpected code execution with environment variables Patch48:bash-4.2-CVE-2014-6271.patch +Patch49:bash-4.2-BSC898604.patch +Patch50:bash-4.2-CVE-2014-7169.patch +Patch51:bash-4.2-CVE-2014-7187.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -323,6 +326,9 @@ %patch46 -p0 -b .notimestamp %patch47 %patch48 -p2 +%patch49 -p0 +%patch50 -p0 +%patch51 -p0 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} for patch in ../readline-%{rl_vers}-patches/*; do ++ bash-4.2-BSC898604.patch ++ --- ../bash-4.2-orig/variables.c2014-09-25 13:07:59.313209541 +0200 +++ variables.c 2014-09-25 13:15:29.869420719 +0200 @@ -268,7 +268,7 @@ static void propagate_temp_var __P((PTR_T)); static void dispose_temporary_env __P((sh_free_func_t *)); -static inline char *mk_env_string __P((const char *, const char *)); +static inline char *mk_env_string __P((const char *, const char *, int)); static char **make_env_array_from_var_list __P((SHELL_VAR **)); static char **make_var_export_array __P((VAR_CONTEXT *)); static char **make_func_export_array __P((void)); @@ -301,6 +301,14 @@ #endif } +/* Prefix and suffix for environment variable names which contain + shell functions. */ +#define FUNCDEF_PREFIX "BASH_FUNC_" +#define FUNCDEF_PREFIX_LEN (strlen (FUNCDEF_PREFIX)) +#define FUNCDEF_SUFFIX "()" +#define FUNCDEF_SUFFIX_LEN (strlen (FUNCDEF_SUFFIX)) + + /* Initialize the shell variables from the current environment. If PRIVMODE is nonzero, don't import functions from ENV or parse $SHELLOPTS. */ @@ -338,27 +346,39 @@ /* If exported function, define it now. Don't import functions from the environment in privileged mode. */ - if (privmode == 0 && read_but_dont_execute == 0 && STREQN ("() {", string, 4)) - { - string_length = strlen (string); - temp_string = (char *)xmalloc (3 + string_length + char_index); + if (privmode == 0 && read_but_dont_execute == 0 + && STREQN (FUNCDEF_PREFIX, name, FUNCDEF_PREFIX_LEN) + && STREQ (name + char_index - FUNCDEF_SUFFIX_LEN, FUNCDEF_SUFFIX) + && STREQN ("() {", string, 4)) + { + size_t name_length + = char_index - (FUNCDEF_PREFIX_LEN + FUNCDEF_SUFFIX_LEN); + char *temp_name = name + FUNCDEF_PREFIX_LEN; + /* Temporarily remove the suffix. */ + temp_name[name_length] = '\0'; - strcpy (temp_string, name); - temp_string[char_index] = ' '; - strcpy (temp_string + char_index + 1, string); + string_length = strlen (string); + temp_string = (char *)xmalloc (name_length + 1 + string_length + 1); + memcpy (temp_string, temp_name, name_length); + temp_string[name_length] = ' '; + memcpy (temp_string + name_length + 1, string, string_length + 1); /* Don't import function names that are invalid identifiers from the environment. */ - if (legal_identifier (name)) - parse_and_execute (temp_string, name, SEVAL_NONINT|SEVAL_NOHIST|SEVAL_FUNCDEF|SEVAL_ONECMD); + if (legal_identifier (temp_name)) + parse_and_execute (temp_string, temp_name, + SEVAL_NONINT|SEVAL_NOHIST|SEVAL_FUNCDEF|SEVAL_ONECMD); -
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-09-28 19:53:46 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2014-07-19 11:04:49.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-09-28 19:53:55.0 +0200 @@ -1,0 +2,14 @@ +Thu Sep 18 12:10:17 UTC 2014 - wer...@suse.de + +- Add bash-4.2-CVE-2014-6271.patch + to fix CVE-2014-6271, the unexpected code execution with + environment variables (bnc#896776) + +--- +Mon Sep 15 08:52:13 UTC 2014 - wer...@suse.de + +- Add patch bash-4.2-error-getpwd.patch + which is the backport of the corrected german error message for + a failing getpwd (bnc#895475) + +--- New: bash-4.2-CVE-2014-6271.patch bash-4.2-error-getpwd.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.qtz8JL/_old 2014-09-28 19:53:56.0 +0200 +++ /var/tmp/diff_new_pack.qtz8JL/_new 2014-09-28 19:53:56.0 +0200 @@ -93,10 +93,14 @@ Patch30:readline-6.2-destdir.patch Patch31:readline-6.2-rltrace.patch Patch40:bash-4.1-bash.bashrc.dif +# PATCH-FIX-UPSTREAM bnc#895475 -- locale de_DE.utf8 has wrong translations +Patch41:bash-4.2-error-getpwd.patch Patch42:audit-patch Patch43:audit-rl-patch Patch46:man2html-no-timestamp.patch Patch47:config-guess-sub-update.patch +# PATCH-FIX-UPSTREAM bnc#895475 -- bnc#896776, CVE-2014-6271: unexpected code execution with environment variables +Patch48:bash-4.2-CVE-2014-6271.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -312,11 +316,13 @@ %patch26 -p0 -b .msgdy %patch31 -p0 -b .tmp %patch40 -p0 -b .bashrc +%patch41 -p0 -b .errgetpwd %if 0%suse_version >= 1100 %patch42 -p1 -b .audit %endif %patch46 -p0 -b .notimestamp %patch47 +%patch48 -p2 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} for patch in ../readline-%{rl_vers}-patches/*; do ++ bash-4.2-CVE-2014-6271.patch ++ diff -ur a/bash/builtins/common.h b/bash/builtins/common.h --- a/bash/builtins/common.h2010-05-31 00:31:51.0 +0200 +++ b/bash/builtins/common.h2014-09-16 21:36:20.139826595 +0200 @@ -33,6 +33,8 @@ #define SEVAL_RESETLINE0x010 #define SEVAL_PARSEONLY0x020 #define SEVAL_NOLONGJMP 0x040 +#define SEVAL_FUNCDEF 0x080 /* only allow function definitions */ +#define SEVAL_ONECMD 0x100 /* only allow a single command */ /* Flags for describe_command, shared between type.def and command.def */ #define CDESC_ALL 0x001 /* type -a */ diff -ur a/bash/builtins/evalstring.c b/bash/builtins/evalstring.c --- a/bash/builtins/evalstring.c2010-11-23 14:22:15.0 +0100 +++ b/bash/builtins/evalstring.c2014-09-16 21:36:20.139826595 +0200 @@ -261,6 +261,14 @@ { struct fd_bitmap *bitmap; + if ((flags & SEVAL_FUNCDEF) && command->type != cm_function_def) + { + internal_warning ("%s: ignoring function definition attempt", from_file); + should_jump_to_top_level = 0; + last_result = last_command_exit_value = EX_BADUSAGE; + break; + } + bitmap = new_fd_bitmap (FD_BITMAP_SIZE); begin_unwind_frame ("pe_dispose"); add_unwind_protect (dispose_fd_bitmap, bitmap); @@ -321,6 +329,9 @@ dispose_command (command); dispose_fd_bitmap (bitmap); discard_unwind_frame ("pe_dispose"); + + if (flags & SEVAL_ONECMD) + break; } } else diff -ur a/bash/variables.c b/bash/variables.c --- a/bash/variables.c 2014-09-16 21:35:34.878850652 +0200 +++ b/bash/variables.c 2014-09-16 21:37:16.221034763 +0200 @@ -347,7 +347,11 @@ temp_string[char_index] = ' '; strcpy (temp_string + char_index + 1, string); - parse_and_execute (temp_string, name, SEVAL_NONINT|SEVAL_NOHIST); + /* Don't import function names that are invalid identifiers from the +environment, though we still allow them to be defined as shell +variables. */ + if (legal_identifier (name)) + parse_and_execute (temp_string, name, SEVAL_NONINT|SEVAL_NOHIST|SEVAL_FUNCDEF|SEVAL_ONECMD); /* Ancient backwards compat
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-07-19 11:04:26 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2014-04-25 16:07:02.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-07-19 11:04:49.0 +0200 @@ -1,0 +2,5 @@ +Sun Jun 29 13:24:47 UTC 2014 - sch...@linux-m68k.org + +- Don't use outdated C standard + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.W8sTWl/_old 2014-07-19 11:04:51.0 +0200 +++ /var/tmp/diff_new_pack.W8sTWl/_new 2014-07-19 11:04:51.0 +0200 @@ -414,7 +414,6 @@ EOF CFLAGS="$RPM_OPT_FLAGS $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g" LDFLAGS="" - cflags -std=gnu89 CFLAGS cflags -Wuninitialized CFLAGS cflags -Wextra CFLAGS cflags -Wno-unprototyped-calls CFLAGS -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-04-25 16:06:58 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2014-04-06 09:54:14.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-04-25 16:07:02.0 +0200 @@ -1,0 +2,11 @@ +Tue Apr 15 15:25:55 UTC 2014 - wer...@suse.de + +- Add bash upstream patch 47 to fix a problem where the function + that shortens pathnames for $PS1 according to the value of + $PROMPT_DIRTRIM uses memcpy on potentially-overlapping regions + of memory, when it should use memmove. The result is garbled + pathnames in prompt strings. +- Remove bash-4.2-prompt-dirtrim.patch as this was the original + report of above. + +--- Other differences: -- ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch new/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch --- old/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch 2014-01-31 17:37:48.0 +0100 +++ new/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch 1970-01-01 01:00:00.0 +0100 @@ -1,13 +0,0 @@ -https://lists.gnu.org/archive/html/bug-bash/2014-01/msg00130.html - general.c -+++ general.c 2014-01-31 16:34:21.006235991 + -@@ -766,7 +766,7 @@ trim_pathname (name, maxlen) - *nbeg++ = '.'; - - nlen = nend - ntail; -- memcpy (nbeg, ntail, nlen); -+ memmove (nbeg, ntail, nlen); - nbeg[nlen] = '\0'; - - return name; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-047 new/bash-4.2-patches/bash42-047 --- old/bash-4.2-patches/bash42-047 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash42-047 2014-04-14 16:17:08.0 +0200 @@ -0,0 +1,49 @@ +BASH PATCH REPORT += + +Bash-Release: 4.2 +Patch-ID: bash42-047 + +Bug-Reported-by: Matthew Riley +Bug-Reference-ID: +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2013-03/msg00047.html + +Bug-Description: + +The function that shortens pathnames for $PS1 according to the value of +$PROMPT_DIRTRIM uses memcpy on potentially-overlapping regions of memory, +when it should use memmove. The result is garbled pathnames in prompt +strings. + +Patch (apply with `patch -p0'): + +*** ../bash-4.2-patched/general.c 2010-12-12 15:06:27.0 -0500 +--- general.c 2014-01-30 16:46:15.0 -0500 +*** +*** 767,771 + +nlen = nend - ntail; +! memcpy (nbeg, ntail, nlen); +nbeg[nlen] = '\0'; + +--- 767,771 + +nlen = nend - ntail; +! memmove (nbeg, ntail, nlen); +nbeg[nlen] = '\0'; + +*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 +--- patchlevel.h Thu Feb 24 21:41:34 2011 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 46 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 47 + + #endif /* _PATCHLEVEL_H_ */ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-04-06 09:54:10 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2014-03-19 13:57:41.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-04-06 09:54:14.0 +0200 @@ -1,0 +2,12 @@ +Tue Apr 1 12:31:38 UTC 2014 - wer...@suse.de + +- Add bash upstream patch 46 to fix a problem introduced by patch + 32 a problem with "$@" and arrays expanding empty positional + parameters or array elements when using substring expansion, + pattern substitution, or case modfication. The empty parameters + or array elements are removed instead of expanding to empty + strings (""). +- Add readline upstream patch 5: The readline shared library + helper script needs to be updated for Mac OS X 10.9 + +--- Other differences: -- ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-046 new/bash-4.2-patches/bash42-046 --- old/bash-4.2-patches/bash42-046 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash42-046 2014-03-31 22:50:19.0 +0200 @@ -0,0 +1,55 @@ +BASH PATCH REPORT += + +Bash-Release: 4.2 +Patch-ID: bash42-046 + +Bug-Reported-by: "Theodoros V. Kalamatianos" +Bug-Reference-ID: <20140112011131.ge17...@infinity.metashade.com> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2014-01/msg00044.html + +Bug-Description: + +Bash-4.2 patch 32 introduced a problem with "$@" and arrays expanding empty +positional parameters or array elements when using substring expansion, +pattern substitution, or case modfication. The empty parameters or array +elements are removed instead of expanding to empty strings (""). + +Patch (apply with `patch -p0'): + +*** ../bash-4.2-patched/subst.c2012-12-31 11:52:56.0 -0500 +--- subst.c2014-03-31 14:19:56.0 -0400 +*** +*** 7243,7247 +ret = alloc_word_desc (); +ret->word = temp1; +! if (temp1 && QUOTED_NULL (temp1) && (quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES))) + ret->flags |= W_QUOTED|W_HASQUOTEDNULL; +return ret; +--- 7243,7253 +ret = alloc_word_desc (); +ret->word = temp1; +! /* We test quoted_dollar_atp because we want variants with double-quoted +! "$@" to take a different code path. In fact, we make sure at the end +! of expand_word_internal that we're only looking at these flags if +! quoted_dollar_at == 0. */ +! if (temp1 && +! (quoted_dollar_atp == 0 || *quoted_dollar_atp == 0) && +!QUOTED_NULL (temp1) && (quoted & (Q_HERE_DOCUMENT|Q_DOUBLE_QUOTES))) + ret->flags |= W_QUOTED|W_HASQUOTEDNULL; +return ret; +*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 +--- patchlevel.h Thu Feb 24 21:41:34 2011 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 45 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 46 + + #endif /* _PATCHLEVEL_H_ */ ++ readline-6.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readline-6.2-patches/readline62-005 new/readline-6.2-patches/readline62-005 --- old/readline-6.2-patches/readline62-005 1970-01-01 01:00:00.0 +0100 +++ new/readline-6.2-patches/readline62-005 2013-11-19 15:38:18.0 +0100 @@ -0,0 +1,72 @@ + READLINE PATCH REPORT + = + +Readline-Release: 6.2 +Patch-ID: readline62-005 + +Bug-Reported-by: ludwig.schwa...@gmail.com +Bug-Reference-ID: +Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-readline/2013-11/msg0.html + +Bug-Description: + +The readline shared library helper script needs to be updated for Mac OS X +10.9 (Mavericks, darwin13). + +Patch (apply with `patch -p0'): + +*** ../readline-6.2-patched/support/shobj-conf 2011-11-23 19:26:47.0 -0500 +--- support/shobj-conf 2013-11-15 08:09:51.0 -0500 +*** +*** 158,162 + + # Darwin/MacOS X +! darwin[89]*|darwin1[012]*) + SHOBJ_STATUS=supported + SHLIB_STATUS=supported +--- 172,176
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-03-19 13:57:40 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2014-02-01 09:40:12.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-03-19 13:57:41.0 +0100 @@ -1,0 +2,7 @@ +Tue Mar 18 11:25:21 UTC 2014 - wer...@suse.de + +- CVE-2014-2524: bash,readline: temporary file misuse in _rl_tropen (bnc#868822) + Even if used only by developers to debug readline library do not + open temporary files from public location without O_EXCL + +--- New: readline-6.2-rltrace.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.YBFLla/_old 2014-03-19 13:57:43.0 +0100 +++ /var/tmp/diff_new_pack.YBFLla/_new 2014-03-19 13:57:43.0 +0100 @@ -91,6 +91,7 @@ Patch26:readline-6.2-msgdynamic.patch Patch27:readline-6.2-xmalloc.dif Patch30:readline-6.2-destdir.patch +Patch31:readline-6.2-rltrace.patch Patch40:bash-4.1-bash.bashrc.dif Patch42:audit-patch Patch43:audit-rl-patch @@ -309,6 +310,7 @@ %patch24 -p0 -b .metamode #%patch25 -p0 -b .endpw %patch26 -p0 -b .msgdy +%patch31 -p0 -b .tmp %patch40 -p0 -b .bashrc %if 0%suse_version >= 1100 %patch42 -p1 -b .audit @@ -334,6 +336,7 @@ %patch24 -p2 -b .metamode #%patch25 -p2 -b .endpw %patch26 -p2 -b .msgdy +%patch31 -p2 -b .tmp %patch27 -p0 -b .xm %patch30 -p0 -b .destdir %if 0%suse_version >= 1100 ++ readline-6.2-rltrace.patch ++ Even if used only by developers to debug readline library do not open temporary files from public location without O_EXCL (bcn#868822). --- util.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) --- lib/readline/util.c +++ lib/readline/util.c 2014-03-18 11:18:25.774735305 + @@ -493,10 +493,12 @@ _rl_trace (va_alist) if (_rl_tracefp == 0) _rl_tropen (); + if (!_rl_tracefp) +goto out; vfprintf (_rl_tracefp, format, args); fprintf (_rl_tracefp, "\n"); fflush (_rl_tracefp); - +out: va_end (args); } @@ -509,7 +511,7 @@ _rl_tropen () fclose (_rl_tracefp); sprintf (fnbuf, "/var/tmp/rltrace.%ld", getpid()); unlink(fnbuf); - _rl_tracefp = fopen (fnbuf, "w+"); + _rl_tracefp = fopen (fnbuf, "w+xe"); return _rl_tracefp != 0; } @@ -517,8 +519,8 @@ int _rl_trclose () { int r; - - r = fclose (_rl_tracefp); + if (_rl_tracefp) +r = fclose (_rl_tracefp); _rl_tracefp = 0; return r; } -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-02-01 09:40:12 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2013-07-12 20:42:20.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-02-01 09:40:12.0 +0100 @@ -1,0 +2,7 @@ +Fri Jan 31 16:39:08 UTC 2014 - wer...@suse.de + +- Add upstream patch bash-4.2-prompt-dirtrim.patch + bash patch tar ball to solve some some cases strange output + displayed in the prompt if PROMPT_DIRTRIM i sset. + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.o78wzP/_old 2014-02-01 09:40:14.0 +0100 +++ /var/tmp/diff_new_pack.o78wzP/_new 2014-02-01 09:40:14.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch new/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch --- old/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch 2014-01-31 17:37:48.0 +0100 @@ -0,0 +1,13 @@ +https://lists.gnu.org/archive/html/bug-bash/2014-01/msg00130.html + +--- general.c general.c 2014-01-31 16:34:21.006235991 + +@@ -766,7 +766,7 @@ trim_pathname (name, maxlen) + *nbeg++ = '.'; + + nlen = nend - ntail; +- memcpy (nbeg, ntail, nlen); ++ memmove (nbeg, ntail, nlen); + nbeg[nlen] = '\0'; + + return name; -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2013-07-12 20:42:19 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2013-07-11 13:27:21.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2013-07-12 20:42:20.0 +0200 @@ -1,0 +2,7 @@ +Fri Jul 12 12:35:26 UTC 2013 - wer...@suse.de + +- Reintroduce patch bash-4.2-winch.dif to solve bnc#828877 + accordingly to my test and upstream (search on bug-b...@gnu.org + for message-id <51dfeb10.8080...@case.edu>) + +--- New: bash-4.2-winch.dif Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.KsyC55/_old 2013-07-12 20:42:21.0 +0200 +++ /var/tmp/diff_new_pack.KsyC55/_new 2013-07-12 20:42:21.0 +0200 @@ -80,6 +80,8 @@ Patch16:bash-4.0-setlocale.dif Patch17:bash-4.0-headers.dif Patch18:bash-4.2-nsec.dif +# PATCH-EXTEND-SUSE bnc#828877 -- xterm resizing does not pass to all sub clients +Patch19:bash-4.2-winch.dif Patch20:readline-%{rl_vers}.dif Patch21:readline-4.3-input.dif Patch22:readline-6.1-wrap.patch @@ -300,6 +302,7 @@ %patch16 -p0 -b .setlocale %patch17 -p0 -b .headers %patch18 -p0 -b .nsec +%patch19 -p0 -b .winch %patch21 -p0 -b .zerotty %patch22 -p0 -b .wrap %patch23 -p0 -b .conf ++ bash-4.2-winch.dif ++ --- jobs.c +++ jobs.c 2013-07-12 12:19:03.0 + @@ -219,7 +219,7 @@ int already_making_children = 0; /* If this is non-zero, $LINES and $COLUMNS are reset after every process exits from get_tty_state(). */ -int check_window_size; +int check_window_size = 1; /* Functions local to this file. */ --- builtins/shopt.def +++ builtins/shopt.def 2006-03-27 12:15:25.0 + @@ -279,9 +279,9 @@ reset_shopt_options () allow_null_glob_expansion = glob_dot_filenames = 0; cdable_vars = mail_warning = 0; no_exit_on_failed_exec = print_shift_error = 0; - check_hashed_filenames = cdspelling = expand_aliases = check_window_size = 0; + check_hashed_filenames = cdspelling = expand_aliases = 0; - source_uses_path = promptvars = 1; + check_window_size = source_uses_path = promptvars = 1; #if defined (EXTENDED_GLOB) extended_glob = 0; ++ bash-4.2.dif ++ --- /var/tmp/diff_new_pack.KsyC55/_old 2013-07-12 20:42:22.0 +0200 +++ /var/tmp/diff_new_pack.KsyC55/_new 2013-07-12 20:42:22.0 +0200 @@ -125,20 +125,6 @@ } else return (result); builtins/shopt.def -+++ builtins/shopt.def 2006-03-27 12:15:25.0 + -@@ -279,9 +279,9 @@ reset_shopt_options () - allow_null_glob_expansion = glob_dot_filenames = 0; - cdable_vars = mail_warning = 0; - no_exit_on_failed_exec = print_shift_error = 0; -- check_hashed_filenames = cdspelling = expand_aliases = check_window_size = 0; -+ check_hashed_filenames = cdspelling = expand_aliases = 0; - -- source_uses_path = promptvars = 1; -+ check_window_size = source_uses_path = promptvars = 1; - - #if defined (EXTENDED_GLOB) - extended_glob = 0; --- doc/Makefile.in +++ doc/Makefile.in2006-03-27 12:15:25.0 + @@ -142,7 +142,7 @@ BASHREF_FILES = $(srcdir)/bashref.texi $ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2013-07-11 13:27:19 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2013-06-05 11:40:08.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2013-07-11 13:27:21.0 +0200 @@ -1,0 +2,8 @@ +Mon Jul 8 11:27:51 UTC 2013 - wer...@suse.de + +- Add bash-4.2-strcpy.patch from upstream mailing list to patch + collection tar ball to avoid when using \w in the prompt and + changing the directory outside of HOME the a strcpy work on + overlapping memory areas. + +--- Other differences: -- ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-strcpy.patch new/bash-4.2-patches/bash-4.2-strcpy.patch --- old/bash-4.2-patches/bash-4.2-strcpy.patch 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash-4.2-strcpy.patch 2013-07-08 12:09:29.0 +0200 @@ -0,0 +1,34 @@ +| Message-ID: <51d5edba.8010...@case.edu> +| > Bash Version: 4.2 +| > Patch Level: 45 +| > Release Status: release +| > +| > Description: +| > When using \w in the prompt and changing the directory outside of HOME +| > bash crashes with an abort trap. +| > strcpy(3) say src and dst must not overlap. OS X 10.9 checks that on +| > runtime and forcefully aborts your code if they do. +| +| Thanks for the report. This will be fixed in the next release of bash. If +| you choose to use your patch before then, you need to add braces around the +| code you added. +| +--- parse.y parse.y2013-07-08 10:07:20.649939525 + +@@ -5273,9 +5273,13 @@ decode_prompt_string (string) + #undef ROOT_PATH + #undef DOUBLE_SLASH_ROOT + else +-/* polite_directory_format is guaranteed to return a string +- no longer than PATH_MAX - 1 characters. */ +-strcpy (t_string, polite_directory_format (t_string)); ++{ ++ /* polite_directory_format is guaranteed to return a string ++ no longer than PATH_MAX - 1 characters. */ ++ temp = polite_directory_format (t_string); ++ if (temp != t_string) ++ strcpy (t_string, temp); ++} + + temp = trim_pathname (t_string, PATH_MAX - 1); + /* If we're going to be expanding the prompt string later, -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2013-06-05 11:39:39 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2013-03-22 11:00:48.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2013-06-05 11:40:08.0 +0200 @@ -1,0 +2,10 @@ +Tue Jun 4 18:36:43 UTC 2013 - co...@suse.com + +- add a conflict between readline5 and readline6-32bit + +--- +Tue May 28 15:17:36 UTC 2013 - wer...@suse.de + +- Do not restart the sighandler after a trap is reset (bnc#820149) + +--- Other differences: -- ++ baselibs.conf ++ --- /var/tmp/diff_new_pack.PX5Xmz/_old 2013-06-05 11:40:09.0 +0200 +++ /var/tmp/diff_new_pack.PX5Xmz/_new 2013-06-05 11:40:09.0 +0200 @@ -8,3 +8,4 @@ readline-devel requires -readline- requires "libreadline6- = " + conflicts "readline5-devel-" ++ bash-4.2-sigrestart.patch ++ --- /var/tmp/diff_new_pack.PX5Xmz/_old 2013-06-05 11:40:09.0 +0200 +++ /var/tmp/diff_new_pack.PX5Xmz/_new 2013-06-05 11:40:09.0 +0200 @@ -19,7 +19,7 @@ if (sig == SIGCHLD) act.sa_flags |= SA_RESTART; /* XXX */ +#if !defined(MUST_REINSTALL_SIGHANDLERS) -+ if (sig != SIGALRM) ++ if (sig != SIGALRM && handler != (termsig_sighandler)) +act.sa_flags |= SA_RESTART; /* XXX */ + if (handler == (trap_handler)) +act.sa_flags |= SA_NODEFER; /* XXX */ -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2013-03-22 11:00:46 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2013-02-12 17:41:38.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2013-03-22 11:00:48.0 +0100 @@ -1,0 +2,29 @@ +Thu Mar 21 11:51:54 UTC 2013 - wer...@suse.de + +- Add patch from upstream mailing list to speed up array handling +- Add patch from upstream mailing list to avoid fdleaks +- Use lsdiff to determine the depth of the leading slashes in a + patch file + +--- +Fri Mar 15 15:35:51 UTC 2013 - wer...@suse.de + +- Disable workaround for bnc#382214 due bnc#806628, let's see when + the old bug will be up again. +- Update bash 4.2 to patch level 45 + * When SIGCHLD is trapped, and a SIGCHLD trap handler runs when +a pending `read -t' invocation times out and generates SIGALRM, +bash can crash with a segmentation fault. + * When converting a multibyte string to a wide character string +as part of pattern matching, bash does not handle the end of +the string correctly, causing the search for the NUL to go +beyond the end of the string and reference random memory. +Depending on the contents of that memory, bash can produce +errors or crash. + * The <&n- and >&n- redirections, which move one file descriptor +to another, leave the file descriptor closed when applied to +builtins or compound commands. +- Use screen to provide a controlling terminal for running the + test suite + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.0Ucacg/_old 2013-03-22 11:00:56.0 +0100 +++ /var/tmp/diff_new_pack.0Ucacg/_new 2013-03-22 11:00:56.0 +0100 @@ -27,6 +27,8 @@ BuildRequires: makeinfo %endif BuildRequires: ncurses-devel +BuildRequires: patchutils +BuildRequires: screen %define bash_vers 4.2 %define rl_vers 6.2 %define extend"" @@ -73,6 +75,7 @@ Patch12:bash-4.1-completion.dif Patch13:bash-4.2-nscdunmap.dif Patch14:bash-4.2-sigrestart.patch +# PATCH-FIX-UPSTREAM bnc#382214 -- disabled due bnc#806628 by -DBNC382214=0 Patch15:bash-3.2-longjmp.dif Patch16:bash-4.0-setlocale.dif Patch17:bash-4.0-headers.dif @@ -267,14 +270,19 @@ %prep %setup -q -n bash-%{bash_vers}%{extend} -b1 -b2 -b3 +typeset -i level for patch in ../bash-%{bash_vers}-patches/*; do -level=-p1 test -e $patch || break -[[ $(head -n 1 $patch) =~ From ]] || level=-p0 +let level=0 || true +file=$(lsdiff --files=1 $patch) +if test ! -e $file ; then + file=${file#*/} + let level++ || true +fi +test -e $file || exit 1 echo Patch $patch -patch -s $level < $patch +patch -s -p$level < $patch done -unset p %patch1 -p0 -b .manual %patch2 -p0 -b .security %patch3 -p0 -b .2.4.4 @@ -306,10 +314,16 @@ %patch47 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} -for p in ../readline-%{rl_vers}-patches/*; do -test -e $p || break -echo Patch $p -patch -s -p0 < $p +for patch in ../readline-%{rl_vers}-patches/*; do +test -e $patch || break +let level=0 || true +file=$(lsdiff --files=1 $patch) +if test ! -e $file ; then + file=${file#*/} + let level++ || true +fi +echo Patch $patch +patch -s -p$level < $patch done %patch21 -p2 -b .zerotty %patch22 -p2 -b .wrap @@ -329,6 +343,22 @@ LANG=POSIX LC_ALL=$LANG unset LC_CTYPE + SCREENDIR=$(mktemp -d ${PWD}/screen.XX) || exit 1 + SCREENRC=${SCREENDIR}/bash + export SCREENRC SCREENDIR + exec 0< /dev/null + SCREENLOG=${SCREENDIR}/log + cat > $SCREENRC<<-EOF + deflogin off + logfile $SCREENLOG + logfile flush 1 + logtstamp off + log on + setsid on + scrollback 0 + silence on + utf8 on + EOF CPU=$(uname -m 2> /dev/null) HOSTTYPE=${CPU} MACHTYPE=${CPU}-suse-linux @@ -387,6 +417,7 @@ cflags -Wno-unused-parameter CFLAGS cflags -ftree-loop-linear CFLAGS cflags -pipe CFLAGS + cflags -DBNC382214=0 CFLAGS cflags -Wl,--as-needed LDFLAGS cflags -Wl,-O2 LDFLAGS cflags -Wl,--hash-size=8599LDFLAGS @@ -511,7 +542,11 @@ make %{?do_profiling:CFLAGS="$CFLAGS %cflags_profile_generate"} \ all printenv recho zecho xcase TMPDIR=$(mktem
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2013-02-12 17:41:35 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2013-01-11 15:53:47.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2013-02-12 17:41:38.0 +0100 @@ -1,0 +2,7 @@ +Tue Feb 12 07:58:08 UTC 2013 - sch...@suse.de + +- config-guess-sub-update.patch: + Update config.guess/sub for aarch64 +- Fix check for negated warning switch + +--- New: config-guess-sub-update.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.kYrCUN/_old 2013-02-12 17:41:41.0 +0100 +++ /var/tmp/diff_new_pack.kYrCUN/_new 2013-02-12 17:41:41.0 +0100 @@ -90,6 +90,7 @@ Patch42:audit-patch Patch43:audit-rl-patch Patch46:man2html-no-timestamp.patch +Patch47:config-guess-sub-update.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _incdir %{_includedir} @@ -302,6 +303,7 @@ %patch42 -p1 -b .audit %endif %patch46 -p0 -b .notimestamp +%patch47 %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} for p in ../readline-%{rl_vers}-patches/*; do @@ -321,6 +323,7 @@ %patch43 -p1 -b .audit %endif %patch20 -p0 -b .0 +%patch47 %build LANG=POSIX @@ -351,10 +354,10 @@ fi ;; *) - if ${CC:-gcc} -Werror $flag -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ; then + if ${CC:-gcc} -Werror ${flag/#-Wno-/-W} -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ; then eval $var=\${$var:+\$$var\ }$flag fi - if ${CXX:-g++} -Werror $flag -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1 ; then + if ${CXX:-g++} -Werror ${flag/#-Wno-/-W} -S -o /dev/null -xc++ /dev/null > /dev/null 2>&1 ; then eval $var=\${$var:+\$$var\ }$flag fi esac ++ config-guess-sub-update.patch ++ 1617 lines (skipped) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2013-01-11 15:53:46 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-11-10 16:54:11.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2013-01-11 15:53:47.0 +0100 @@ -1,0 +2,26 @@ +Wed Jan 9 08:55:09 UTC 2013 - wer...@suse.de + +- Avoid autoconf on older products +- Apply audit patch variant to readline as well as we use a shared + libreadline +- Avoid bash-devel on older products as older GNU make do not have + a realpath builtin + +--- +Tue Jan 8 17:43:01 UTC 2013 - wer...@suse.de + +- Do not trigger the export of COLUMNS or LINES due enforced + checkwinsize (bnc#793536) + +--- +Tue Jan 8 14:57:17 UTC 2013 - wer...@suse.de + +- Update bash 4.2 to patch level 42 + * Missing I/O errors if output redirection applied to builtin +commands when the file descriptor was closed + * Process substitution incorrectly inherited a flag that +inhibited using the temporary environment for variable lookups +if it was providing the filename to a redirection. + * Compilation failed after specifying the `minimal config' option + +--- New: audit-rl-patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.FK1jog/_old 2013-01-11 15:53:51.0 +0100 +++ /var/tmp/diff_new_pack.FK1jog/_new 2013-01-11 15:53:51.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -88,6 +88,7 @@ Patch30:readline-6.2-destdir.patch Patch40:bash-4.1-bash.bashrc.dif Patch42:audit-patch +Patch43:audit-rl-patch Patch46:man2html-no-timestamp.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc @@ -132,6 +133,7 @@ Provides translations to the package bash %endif +%if 0%suse_version >= 1100 %package -n bash-devel Summary:Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ @@ -142,6 +144,7 @@ This package contains the C header files for writing loadable new builtins for the interpreter Bash. Use -I /usr/include/bash/ on the compilers command line. +%endif %package -n bash-loadables Summary:Loadable bash builtins @@ -209,7 +212,7 @@ Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version:6.2 Release:0 -%if %suse_version > 1020 +%if 0%suse_version > 1020 Recommends: readline-doc = %{version} %endif # bug437293 @@ -233,7 +236,7 @@ Release:0 Requires: libreadline6 = %{version} Requires: ncurses-devel -%if %suse_version > 1020 +%if 0%suse_version > 1020 Recommends: readline-doc = %{version} %endif # bug437293 @@ -253,7 +256,7 @@ PreReq: %install_info_prereq Version:6.2 Release:0 -%if %suse_version > 1120 +%if 0%suse_version > 1120 BuildArch: noarch %endif @@ -295,7 +298,9 @@ #%patch25 -p0 -b .endpw %patch26 -p0 -b .msgdy %patch40 -p0 -b .bashrc +%if 0%suse_version >= 1100 %patch42 -p1 -b .audit +%endif %patch46 -p0 -b .notimestamp %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} @@ -312,6 +317,9 @@ %patch26 -p2 -b .msgdy %patch27 -p0 -b .xm %patch30 -p0 -b .destdir +%if 0%suse_version >= 1100 +%patch43 -p1 -b .audit +%endif %patch20 -p0 -b .0 %build @@ -323,7 +331,9 @@ MACHTYPE=${CPU}-suse-linux export LANG LC_ALL HOSTTYPE MACHTYPE pushd ../readline-%{rl_vers}%{extend} +%if 0%suse_version >= 1100 autoconf +%endif cflags () { local flag=$1; shift @@ -422,7 +432,9 @@ CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS" export CC_FOR_BUILD CFLAGS_FOR_BUILD CFLAGS LDFLAGS CC +%if 0%suse_version >= 1100 autoconf +%endif # # We have a malloc with our glibc # @@ -623,6 +635,7 @@ %doc %{_mandir}/man1/rbash.1.gz %doc %{_defaultdocdir}/bash/ +%if 0%suse_version >= 1100 %files -n bash-devel %defattr(-,root,root) %dir /%{_includedir}/bash/ @@ -630,6 +643,7 @@ %dir /%{_includedir}/bash/%{bash_vers}/builtins/ /%{_incdir}/bash/%{bash_vers}/*.h /%{
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-11-10 16:54:08 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-10-18 15:40:09.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-11-10 16:54:11.0 +0100 @@ -1,0 +2,8 @@ +Mon Nov 5 12:41:57 UTC 2012 - wer...@suse.de + +- Update bash 4.2 to patch level 39 + * Official fix for the last crash fix + * Avoid variable expansion in arithmetic expressions when +evaluation is being suppressed + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.KY10N4/_old 2012-11-10 16:54:13.0 +0100 +++ /var/tmp/diff_new_pack.KY10N4/_new 2012-11-10 16:54:13.0 +0100 @@ -23,7 +23,9 @@ %if %suse_version > 1020 BuildRequires: fdupes %endif +%if %suse_version > 1220 BuildRequires: makeinfo +%endif BuildRequires: ncurses-devel %define bash_vers 4.2 %define rl_vers 6.2 ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-read-escape-segfault.patch new/bash-4.2-patches/bash-4.2-read-escape-segfault.patch --- old/bash-4.2-patches/bash-4.2-read-escape-segfault.patch2012-08-24 16:00:03.0 +0200 +++ new/bash-4.2-patches/bash-4.2-read-escape-segfault.patch1970-01-01 01:00:00.0 +0100 @@ -1,15 +0,0 @@ -*** ../bash-4.2-patched/builtins/read.def 2012-03-11 17:52:44.0 -0400 builtins/read.def 2012-08-22 11:53:09.0 -0400 -*** -*** 792,796 - #endif - -! if (saw_escape) - { -t = dequote_string (input_string); 847,851 - #endif - -! if (saw_escape && input_string && *input_string) - { -t = dequote_string (input_string); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-038 new/bash-4.2-patches/bash42-038 --- old/bash-4.2-patches/bash42-038 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash42-038 2012-11-02 15:09:12.0 +0100 @@ -0,0 +1,47 @@ +BASH PATCH REPORT += + +Bash-Release: 4.2 +Patch-ID: bash42-038 + +Bug-Reported-by: arman...@gmail.com +Bug-Reference-ID: <20120822112810.8d14920...@windmill.latviatours.lv> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-08/msg00049.html + +Bug-Description: + +If a backslash-newline (which is removed) with no other input is given as +input to `read', the shell tries to dereference a null pointer and seg faults. + +Patch (apply with `patch -p0'): + +*** ../bash-4.2-patched/builtins/read.def 2012-03-11 17:52:44.0 -0400 +--- builtins/read.def 2012-08-22 11:53:09.0 -0400 +*** +*** 792,796 + #endif + +! if (saw_escape) + { +t = dequote_string (input_string); +--- 847,851 + #endif + +! if (saw_escape && input_string && *input_string) + { +t = dequote_string (input_string); +*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 +--- patchlevel.h Thu Feb 24 21:41:34 2011 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 37 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 38 + + #endif /* _PATCHLEVEL_H_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-039 new/bash-4.2-patches/bash42-039 --- old/bash-4.2-patches/bash42-039 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash42-039 2012-11-02 15:09:26.0 +0100 @@ -0,0 +1,58 @@ +BASH PATCH REPORT += + +Bash-Release: 4.2 +Patch-ID: bash42-039 + +Bug-Reported-by: Dan Douglas +Bug-Reference-ID: <1498458.MpVlmOXDB7@smorgbox> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-09/msg8.html + +Bug-Description: + +Under certain circumstances, bash attempts to expand variables in arithmetic +expressions even when evaluation is being suppressed. + +Patch (apply with `patch -p0'): + +*** ../bash-4.2-patched/expr.c 2011-11-21 18:03:35.0 -0500 +--- expr.c 2012-09-0
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-10-18 15:40:07 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-08-26 11:30:55.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-10-18 15:40:09.0 +0200 @@ -1,0 +2,6 @@ +Wed Oct 17 13:10:22 UTC 2012 - wer...@suse.de + +- Do not mix xmalloc/xfree of libreadline and bash by making the + libreadline version weak symbols instead of private symbols + +--- New: readline-6.2-xmalloc.dif Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.n5hKL8/_old 2012-10-18 15:40:11.0 +0200 +++ /var/tmp/diff_new_pack.n5hKL8/_new 2012-10-18 15:40:11.0 +0200 @@ -82,6 +82,7 @@ Patch24:readline-6.2-metamode.patch Patch25:readline-6.2-endpw.dif Patch26:readline-6.2-msgdynamic.patch +Patch27:readline-6.2-xmalloc.dif Patch30:readline-6.2-destdir.patch Patch40:bash-4.1-bash.bashrc.dif Patch42:audit-patch @@ -307,6 +308,7 @@ %patch24 -p2 -b .metamode #%patch25 -p2 -b .endpw %patch26 -p2 -b .msgdy +%patch27 -p0 -b .xm %patch30 -p0 -b .destdir %patch20 -p0 -b .0 @@ -353,15 +355,6 @@ LARGEFILE="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" fi rm -f ./test64 - (cat > rl.map)<<-'EOF' - { - local: - /* _rl*; */ - xfree; - xmalloc; - xrealloc; - }; - EOF (cat > dyn.map)<<-'EOF' { *; @@ -383,7 +376,6 @@ cflags -Wl,-O2 LDFLAGS cflags -Wl,--hash-size=8599LDFLAGS cflags -Wl,-rpath,%{_ldldir}/%{bash_vers} LDFLAGS - cflags -Wl,--version-script=${PWD}/rl.map LDFLAGS cflags -Wl,--dynamic-list=${PWD}/dyn.mapLDFLAGS CC=gcc CC_FOR_BUILD="$CC" ++ readline-6.2-xmalloc.dif ++ --- xfree.c +++ xfree.c 2012-10-17 12:48:37.862344784 + @@ -48,3 +48,6 @@ xfree (string) if (string) free (string); } + +#undef xfree +extern void xfree PARAMS((void *)) __attribute__ ((weak, alias ("_rl_xfree"))); --- xmalloc.c +++ xmalloc.c 2012-10-17 12:48:28.430844890 + @@ -77,3 +77,8 @@ xrealloc (pointer, bytes) memory_error_and_abort ("xrealloc"); return (temp); } + +#undef xmalloc +#undef xrealloc +extern PTR_T xmalloc PARAMS((size_t)) __attribute__ ((weak, alias ("_rl_xmalloc"))); +extern PTR_T xrealloc PARAMS((void *, size_t)) __attribute__ ((weak, alias ("_rl_xrealloc"))); --- xmalloc.h +++ xmalloc.h 2012-10-17 12:27:20.325156790 + @@ -38,6 +38,14 @@ #endif /* !PTR_T */ +#undef xmalloc +#undef xrealloc +#undef xfree + +#define xmalloc _rl_xmalloc +#define xrealloc _rl_xrealloc +#define xfree_rl_xfree + extern PTR_T xmalloc PARAMS((size_t)); extern PTR_T xrealloc PARAMS((void *, size_t)); extern void xfree PARAMS((void *)); -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-08-26 11:30:53 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-07-23 10:15:13.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-08-26 11:30:55.0 +0200 @@ -1,0 +2,5 @@ +Fri Aug 24 14:31:35 UTC 2012 - wer...@suse.de + +- Add patch from upstream mailing list to avoids crash + +--- Other differences: -- ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-read-escape-segfault.patch new/bash-4.2-patches/bash-4.2-read-escape-segfault.patch --- old/bash-4.2-patches/bash-4.2-read-escape-segfault.patch1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash-4.2-read-escape-segfault.patch2012-08-24 16:00:03.0 +0200 @@ -0,0 +1,15 @@ +*** ../bash-4.2-patched/builtins/read.def 2012-03-11 17:52:44.0 -0400 +--- builtins/read.def 2012-08-22 11:53:09.0 -0400 +*** +*** 792,796 + #endif + +! if (saw_escape) + { +t = dequote_string (input_string); +--- 847,851 + #endif + +! if (saw_escape && input_string && *input_string) + { +t = dequote_string (input_string); -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-07-23 09:53:35 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-07-18 17:12:09.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-07-23 10:15:13.0 +0200 @@ -1,0 +2,13 @@ +Fri Jul 20 10:16:20 UTC 2012 - wer...@suse.de + +- Update bash 4.2 to patch level 37 + * Attempting to redo (using `.') the vi editing mode `cc', `dd', +or `yy' commands leads to an infinite loop. + +--- +Thu Jul 19 12:04:50 UTC 2012 - wer...@suse.de + +- Do not mask internal _rl symbols as internal as there are many + tools out there which uses them (gdb as an example) + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.zpMAoL/_old 2012-07-23 10:15:15.0 +0200 +++ /var/tmp/diff_new_pack.zpMAoL/_new 2012-07-23 10:15:15.0 +0200 @@ -356,7 +356,7 @@ (cat > rl.map)<<-'EOF' { local: - _rl*; + /* _rl*; */ xfree; xmalloc; xrealloc; ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-037 new/bash-4.2-patches/bash42-037 --- old/bash-4.2-patches/bash42-037 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash42-037 2012-07-16 23:20:38.0 +0200 @@ -0,0 +1,112 @@ +BASH PATCH REPORT += + +Bash-Release: 4.2 +Patch-ID: bash42-037 + +Bug-Reported-by: Jakub Filak +Bug-Reference-ID: +Bug-Reference-URL: https://bugzilla.redhat.com/show_bug.cgi?id=813289 + +Bug-Description: + +Attempting to redo (using `.') the vi editing mode `cc', `dd', or `yy' +commands leads to an infinite loop. + +Patch (apply with `patch -p0'): + +*** ../bash-4.2-patched/lib/readline/vi_mode.c 2011-02-25 11:17:02.0 -0500 +--- lib/readline/vi_mode.c 2012-06-02 12:24:47.0 -0400 +*** +*** 1235,1243 +r = rl_domove_motion_callback (_rl_vimvcxt); + } +! else if (vi_redoing) + { +_rl_vimvcxt->motion = _rl_vi_last_motion; +r = rl_domove_motion_callback (_rl_vimvcxt); + } + #if defined (READLINE_CALLBACKS) +else if (RL_ISSTATE (RL_STATE_CALLBACK)) +--- 1297,1313 +r = rl_domove_motion_callback (_rl_vimvcxt); + } +! else if (vi_redoing && _rl_vi_last_motion != 'd') /* `dd' is special */ + { +_rl_vimvcxt->motion = _rl_vi_last_motion; +r = rl_domove_motion_callback (_rl_vimvcxt); + } ++ else if (vi_redoing) /* handle redoing `dd' here */ ++ { ++ _rl_vimvcxt->motion = _rl_vi_last_motion; ++ rl_mark = rl_end; ++ rl_beg_of_line (1, key); ++ RL_UNSETSTATE (RL_STATE_VIMOTION); ++ r = vidomove_dispatch (_rl_vimvcxt); ++ } + #if defined (READLINE_CALLBACKS) +else if (RL_ISSTATE (RL_STATE_CALLBACK)) +*** +*** 1317,1325 +r = rl_domove_motion_callback (_rl_vimvcxt); + } +! else if (vi_redoing) + { +_rl_vimvcxt->motion = _rl_vi_last_motion; +r = rl_domove_motion_callback (_rl_vimvcxt); + } + #if defined (READLINE_CALLBACKS) +else if (RL_ISSTATE (RL_STATE_CALLBACK)) +--- 1387,1403 +r = rl_domove_motion_callback (_rl_vimvcxt); + } +! else if (vi_redoing && _rl_vi_last_motion != 'c') /* `cc' is special */ + { +_rl_vimvcxt->motion = _rl_vi_last_motion; +r = rl_domove_motion_callback (_rl_vimvcxt); + } ++ else if (vi_redoing) /* handle redoing `cc' here */ ++ { ++ _rl_vimvcxt->motion = _rl_vi_last_motion; ++ rl_mark = rl_end; ++ rl_beg_of_line (1, key); ++ RL_UNSETSTATE (RL_STATE_VIMOTION); ++ r = vidomove_dispatch (_rl_vimvcxt); ++ } + #if defined (READLINE_CALLBACKS) +else if (RL_ISSTATE (RL_STATE_CALLBACK)) +*** +*** 1378,1381 +--- 1456,1472 +r = rl_domove_motion_callback (_rl_vimvcxt); + } ++ else if (vi_redoing && _rl_vi_last_motion != 'y') /* `yy' is special */ ++ { ++ _rl_vimvcxt->motion = _rl_vi_last_motion; ++ r = rl_domove_motion_callback (_rl_vimvcxt); ++ } ++ else if (vi_redoing) /* handle redoing `yy' here */ ++ { ++ _rl_vimvcxt->motion = _r
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-07-18 17:12:06 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-07-12 10:40:11.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-07-18 17:12:09.0 +0200 @@ -1,0 +2,14 @@ +Wed Jul 18 11:17:00 UTC 2012 - wer...@suse.de + +- libreadlib: try to avoid to bind references of the symbols + rl_instream and rl_outstream +- libreadlib: make private symbols really private + +--- +Wed Jul 18 09:20:55 UTC 2012 - wer...@suse.de + +- Increase buffer for libreadline messsages if required +- Include stdio.h in libreadline header files to get the declaration + of FILES correct. + +--- New: readline-6.2-msgdynamic.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.yyaxuF/_old 2012-07-18 17:12:13.0 +0200 +++ /var/tmp/diff_new_pack.yyaxuF/_new 2012-07-18 17:12:13.0 +0200 @@ -20,10 +20,11 @@ BuildRequires: audit-devel BuildRequires: autoconf BuildRequires: bison -BuildRequires: ncurses-devel %if %suse_version > 1020 BuildRequires: fdupes %endif +BuildRequires: makeinfo +BuildRequires: ncurses-devel %define bash_vers 4.2 %define rl_vers 6.2 %define extend"" @@ -80,6 +81,7 @@ Patch23:readline-5.2-conf.patch Patch24:readline-6.2-metamode.patch Patch25:readline-6.2-endpw.dif +Patch26:readline-6.2-msgdynamic.patch Patch30:readline-6.2-destdir.patch Patch40:bash-4.1-bash.bashrc.dif Patch42:audit-patch @@ -288,6 +290,7 @@ %patch23 -p0 -b .conf %patch24 -p0 -b .metamode #%patch25 -p0 -b .endpw +%patch26 -p0 -b .msgdy %patch40 -p0 -b .bashrc %patch42 -p1 -b .audit %patch46 -p0 -b .notimestamp @@ -303,6 +306,7 @@ %patch23 -p2 -b .conf %patch24 -p2 -b .metamode #%patch25 -p2 -b .endpw +%patch26 -p2 -b .msgdy %patch30 -p0 -b .destdir %patch20 -p0 -b .0 @@ -349,6 +353,21 @@ LARGEFILE="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" fi rm -f ./test64 + (cat > rl.map)<<-'EOF' + { + local: + _rl*; + xfree; + xmalloc; + xrealloc; + }; + EOF + (cat > dyn.map)<<-'EOF' + { + *; + !rl_*stream; + } + EOF CFLAGS="$RPM_OPT_FLAGS $LARGEFILE -D_GNU_SOURCE -DRECYCLES_PIDS -Wall -g" LDFLAGS="" cflags -std=gnu89 CFLAGS @@ -363,8 +382,9 @@ cflags -Wl,--as-needed LDFLAGS cflags -Wl,-O2 LDFLAGS cflags -Wl,--hash-size=8599LDFLAGS - cflags -Wl,-Bsymbolic-functions LDFLAGS cflags -Wl,-rpath,%{_ldldir}/%{bash_vers} LDFLAGS + cflags -Wl,--version-script=${PWD}/rl.map LDFLAGS + cflags -Wl,--dynamic-list=${PWD}/dyn.mapLDFLAGS CC=gcc CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS" @@ -383,6 +403,9 @@ ln -sf shlib/libreadline.so.%{rl_vers} libreadline.so.%{rl_major} ln -sf shlib/libhistory.so.%{rl_vers} libhistory.so ln -sf shlib/libhistory.so.%{rl_vers} libhistory.so.%{rl_major} + LDFLAGS=${LDFLAGS/-Wl,--version-script=*rl.map/} + LDFLAGS=${LDFLAGS/-Wl,--dynamic-list=*dyn.map/} + LDFLAGS_FOR_BUILD="$LDFLAGS" popd # /proc is required for correct configuration test -d /dev/fd || { echo "/proc is not mounted!" >&2; exit 1; } ++ readline-6.2-msgdynamic.patch ++ --- lib/readline/display.c +++ lib/readline/display.c 2012-07-18 08:04:36.456009352 + @@ -176,7 +176,8 @@ int _rl_vis_botlin = 0; static int last_lmargin; /* A buffer for `modeline' messages. */ -static char msg_buf[128]; +static char *msg_buf; +static size_t msg_buf_sz = 128; /* Non-zero forces the redisplay even if we thought it was unnecessary. */ static int forced_display; @@ -2139,6 +2140,32 @@ rl_message (va_alist) #if defined (PREFER_VARARGS) char *format; #endif +#if defined (HAVE_VSNPRINTF) + int vsnprbytes; +#endif + + if (!msg_buf) +msg_buf = xmalloc(msg_buf_sz); + +#if defined (HAVE_VSNPRINTF) + do +{ + va_end (args); +#if defined (PREFER_STDARG) + va_start (args, format); +#else + va_start (args); + format = va_arg (args, char *); +#endif + vsnprbytes = vsnprintf (msg_buf, msg_buf_sz - 1, format, args); + if (vsnprbytes < msg_buf_sz - 1) + break; + + msg_buf_sz += 64; + msg_buf = xrealloc (msg_buf, msg_buf_sz); +} + while (1); +#else
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-07-12 10:40:09 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-06-26 17:45:02.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-07-12 10:40:11.0 +0200 @@ -1,0 +2,46 @@ +Mon Jul 9 10:54:51 UTC 2012 - wer...@suse.de + +- Update bash 4.2 to patch level 36 + * Patch 25: When used in a shell function, +`declare -g -a array=(compound assignment)' creates a local +variable instead of a global one. + * Patch 26: The `lastpipe' option does not behave correctly on +machines where the open file limit is less than 256. + * Patch 27: When the `extglob' shell option is enabled, pattern +substitution does not work correctly in the presence of +multibyte characters. + * Patch 28: When using a word expansion for which the right hand +side is evaluated, certain expansions of quoted null strings +include spurious ^? characters. + * Patch 29: Bash-4.2 tries to leave completed directory names as +the user typed them, without expanding them to a full pathname. +One effect of this is that shell variables used in pathnames +being completed (e.g., $HOME) are left unchanged, but the `$' +is quoted by readline because it is a special character to the shell. + * Patch 30: When attempting to glob strings in a multibyte locale, +and those strings contain invalid multibyte characters that cause +mbsnrtowcs to return 0, the globbing code loops infinitely. + * Patch 31: A change between bash-4.1 and bash-4.2 to prevent the +readline input hook from being called too frequently had the side +effect of causing delays when reading pasted input on systems such +as Mac OS X. This patch fixes those delays while retaining the +bash-4.2 behavior. + * Patch 32: Bash-4.2 has problems with DEL characters in the +expanded value of variables used in the same quoted string as +variables that expand to nothing. + * Patch 33: Bash uses a static buffer when expanding the /dev/fd +prefix for the test and conditional commands, among other uses, +when it should use a dynamic buffer to avoid buffer overflow. + * Patch 34: In bash-4.2, the history code would inappropriately add +a semicolon to multi-line compound array assignments when adding +them to the history. + * Patch 35: When given a number of lines to read, `mapfile -n lines' +reads one too many. + * Patch 36: Bash-4.2 produces incorrect word splitting results when +expanding double-quoted $@ in the same string as and adjacent to +other variable expansions. The $@ should be split, the other +expansions should not. +- Add patch to avoid double free or corruption due expanding number + sequence with huge numbers. Patch will go upstream (bnc#763591) + +--- Other differences: -- ++ bash-4.2-patches.tar.bz2 ++ 2082 lines of diff (skipped) ++ readline-6.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readline-6.2-patches/readline62-003 new/readline-6.2-patches/readline62-003 --- old/readline-6.2-patches/readline62-003 1970-01-01 01:00:00.0 +0100 +++ new/readline-6.2-patches/readline62-003 2012-07-09 04:28:32.0 +0200 @@ -0,0 +1,76 @@ + READLINE PATCH REPORT + = + +Readline-Release: 6.2 +Patch-ID: readline62-003 + +Bug-Reported-by: Max Horn +Bug-Reference-ID: <20cc5c60-07c3-4e41-9817-741e48d40...@quendi.de> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-readline/2012-06/msg5.html + +Bug-Description: + +A change between readline-6.1 and readline-6.2 to prevent the readline input +hook from being called too frequently had the side effect of causing delays +when reading pasted input on systems such as Mac OS X. This patch fixes +those delays while retaining the readline-6.2 behavior. + +Patch (apply with `patch -p0'): + +*** ../readline-6.2-patched/input.c2010-05-30 18:33:01.0 -0400 +--- input.c2012-06-25 21:08:42.0 -0400 +*** +*** 410,414 + rl_read_key () + { +! int c; + +rl_key_sequence_length++; +--- 412,416 + rl_read_key () + { +! int c, r; + +rl_key_sequence_length++; +*** +*** 430,441 + while (rl_event_hook) + { +!if (rl_gather_tyi () < 0) /*
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-06-26 17:44:59 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-04-12 09:19:39.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-06-26 17:45:02.0 +0200 @@ -1,0 +2,17 @@ +Tue Jun 26 12:49:53 UTC 2012 - cfarr...@suse.com + +- license update: GPL-3.0+ + Upstream declares the bash license to be GPL-3.0+ - not GPL-2.0+ + +--- +Mon Jun 11 11:51:12 UTC 2012 - wer...@suse.de + +- Enable auditing patch by simply applying it + +--- +Wed May 23 23:37:53 UTC 2012 - meiss...@suse.com + +- added auditing patch from + http://git.savannah.gnu.org/cgit/bash.git/plain/CWRU/audit-patch + +--- New: audit-patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.hxWWde/_old 2012-06-26 17:45:04.0 +0200 +++ /var/tmp/diff_new_pack.hxWWde/_new 2012-06-26 17:45:04.0 +0200 @@ -17,6 +17,7 @@ Name: bash +BuildRequires: audit-devel BuildRequires: autoconf BuildRequires: bison BuildRequires: ncurses-devel @@ -37,7 +38,7 @@ Version:4.2 Release:0 Summary:The GNU Bourne-Again Shell -License:GPL-2.0+ +License:GPL-3.0+ Group: System/Shells Url:http://www.gnu.org/software/bash/bash.html # Git: http://git.savannah.gnu.org/cgit/bash.git @@ -81,6 +82,7 @@ Patch25:readline-6.2-endpw.dif Patch30:readline-6.2-destdir.patch Patch40:bash-4.1-bash.bashrc.dif +Patch42:audit-patch Patch46:man2html-no-timestamp.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc @@ -287,6 +289,7 @@ %patch24 -p0 -b .metamode #%patch25 -p0 -b .endpw %patch40 -p0 -b .bashrc +%patch42 -p1 -b .audit %patch46 -p0 -b .notimestamp %patch0 -p0 -b .0 pushd ../readline-%{rl_vers}%{extend} ++ audit-patch ++ diff -up bash-4.0/config.h.in.audit bash-4.0/config.h.in --- bash-4.0/config.h.in.audit 2009-01-21 11:34:34.0 -0500 +++ bash-4.0/config.h.in2009-01-21 11:34:35.0 -0500 @@ -1077,6 +1077,14 @@ /* End additions for lib/intl */ + +/* Additions for lib/readline */ + +/* Define if you have and it defines AUDIT_USER_TTY */ +#undef HAVE_DECL_AUDIT_USER_TTY + +/* End additions for lib/readline */ + #include "config-bot.h" #endif /* _CONFIG_H_ */ diff -up bash-4.0/configure.in.audit bash-4.0/configure.in --- bash-4.0/configure.in.audit 2009-01-21 11:34:34.0 -0500 +++ bash-4.0/configure.in 2009-01-21 11:34:35.0 -0500 @@ -875,6 +875,8 @@ BASH_FUNC_DUP2_CLOEXEC_CHECK BASH_SYS_PGRP_SYNC BASH_SYS_SIGNAL_VINTAGE +AC_CHECK_DECLS([AUDIT_USER_TTY],,, [[#include ]]) + dnl checking for the presence of certain library symbols BASH_SYS_ERRLIST BASH_SYS_SIGLIST diff -up bash-4.0/lib/readline/readline.c.audit bash-4.0/lib/readline/readline.c --- bash-4.0/lib/readline/readline.c.audit 2009-01-21 11:34:34.0 -0500 +++ bash-4.0/lib/readline/readline.c2009-01-21 11:40:12.0 -0500 @@ -55,6 +55,12 @@ extern int errno; #endif /* !errno */ +#if defined (HAVE_DECL_AUDIT_USER_TTY) +# include +# include +# include +#endif + /* System-specific feature definitions and include files. */ #include "rldefs.h" #include "rlmbutil.h" @@ -297,7 +303,47 @@ rl_set_prompt (prompt) rl_visible_prompt_length = rl_expand_prompt (rl_prompt); return 0; } - + +#if defined (HAVE_DECL_AUDIT_USER_TTY) +/* Report STRING to the audit system. */ +static void +audit_tty (char *string) +{ + struct sockaddr_nl addr; + struct msghdr msg; + struct nlmsghdr nlm; + struct iovec iov[2]; + size_t size; + int fd; + + size = strlen (string) + 1; + fd = socket (AF_NETLINK, SOCK_RAW, NETLINK_AUDIT); + if (fd < 0) +return; + nlm.nlmsg_len = NLMSG_LENGTH (size); + nlm.nlmsg_type = AUDIT_USER_TTY; + nlm.nlmsg_flags = NLM_F_REQUEST; + nlm.nlmsg_seq = 0; + nlm.nlmsg_pid = 0; + iov[0].iov_base = &nlm; + iov[0].iov_len = sizeof (nlm); + iov[1].iov_base = string; + iov[1].iov_len = size; + addr.nl_family = AF_NETLINK; + addr.nl_pid = 0; + addr.nl_groups = 0; + msg.msg_name = &addr; + msg.msg_namelen = sizeof (addr); + msg.msg_iov = iov; + msg.msg_iovlen = 2; + msg.msg_control = NULL; + msg.msg_controllen = 0; + msg.msg_flags = 0; + (
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-04-12 09:19:35 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-03-16 13:10:49.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-04-12 09:19:39.0 +0200 @@ -1,0 +2,6 @@ +Thu Apr 5 11:48:02 UTC 2012 - wer...@suse.de + +- Remove not required patch (was a fix for bnc#141394) which now + cause a wrong behaviour if applied (bnc#755453) + +--- Old: bash-4.0-extended_quote.patch Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.ypSCG8/_old 2012-04-12 09:19:41.0 +0200 +++ /var/tmp/diff_new_pack.ypSCG8/_new 2012-04-12 09:19:41.0 +0200 @@ -16,7 +16,6 @@ # - Name: bash BuildRequires: autoconf BuildRequires: bison @@ -65,7 +64,6 @@ Patch6: bash-4.2-endpw.dif Patch7: bash-3.0-decl.patch 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 @@ -274,7 +272,6 @@ #%patch6 -p0 -b .endpw %patch7 -p0 -b .decl %patch8 -p0 -b .async -%patch9 -p0 -b .extended_quote %patch10 -p0 -b .printf %patch11 -p0 -b .plugins %patch12 -p0 -b .completion -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-03-16 13:10:46 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-03-12 08:53:25.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-03-16 13:10:49.0 +0100 @@ -1,0 +2,5 @@ +Tue Mar 13 09:34:58 UTC 2012 - wer...@suse.de + +- Update bash 4.2 to patch level 24 + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.qzFUl4/_old 2012-03-16 13:10:52.0 +0100 +++ /var/tmp/diff_new_pack.qzFUl4/_new 2012-03-16 13:10:52.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package bash # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # + Name: bash BuildRequires: autoconf BuildRequires: bison ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-021 new/bash-4.2-patches/bash42-021 --- old/bash-4.2-patches/bash42-021 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash42-021 2012-03-12 02:19:01.0 +0100 @@ -0,0 +1,61 @@ +BASH PATCH REPORT += + +Bash-Release: 4.2 +Patch-ID: bash42-021 + +Bug-Reported-by: Dan Douglas +Bug-Reference-ID: <4585554.nZWb4q7YoZ@smorgbox> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-12/msg00084.html + +Bug-Description: + +Using `read -N' to assign values to an array can result in NUL values being +assigned to some array elements. These values cause seg faults when referenced +later. + +Patch (apply with `patch -p0'): + +*** ../bash-4.2-patched/builtins/read.def 2011-11-21 18:03:38.0 -0500 +--- builtins/read.def 2011-12-19 19:52:12.0 -0500 +*** +*** 738,742 + } + else +! var = bind_read_variable (varname, t); + } +else +--- 775,779 + } + else +! var = bind_read_variable (varname, t ? t : ""); + } +else +*** +*** 799,803 + } +else +! var = bind_read_variable (list->word->word, input_string); + +if (var) +--- 836,840 + } +else +! var = bind_read_variable (list->word->word, input_string ? input_string : ""); + +if (var) +*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 +--- patchlevel.h Thu Feb 24 21:41:34 2011 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 20 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 21 + + #endif /* _PATCHLEVEL_H_ */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-022 new/bash-4.2-patches/bash42-022 --- old/bash-4.2-patches/bash42-022 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash42-022 2012-03-12 02:19:29.0 +0100 @@ -0,0 +1,61 @@ +BASH PATCH REPORT += + +Bash-Release: 4.2 +Patch-ID: bash42-022 + +Bug-Reported-by: Gregory Margo +Bug-Reference-ID: <20110727174529.ga3...@pacbell.net> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-07/msg00102.html + +Bug-Description: + +The return value from lseek is `off_t'. This can cause corrupted return +values when the file offset is greater than 2**31 - 1. + +Patch (apply with `patch -p0'): + +*** ../bash-4.2-patched/lib/sh/zread.c Mon Mar 2 08:54:45 2009 +--- lib/sh/zread.c Thu Jul 28 18:16:53 2011 +*** +*** 161,166 + int fd; + { +! off_t off; +! int r; + +off = lused - lind; +--- 161,165 + int fd; + { +! off_t off, r; + +off = lused - lind; +*** +*** 169,173 + r = lseek (fd, -off, SEEK_CUR); + +! if (r >= 0) + lused = lind = 0; + } +--- 168,172 + r = lseek (fd, -off, SEEK_CUR); + +! if (r != -1) + lused = lind = 0; + } +*** ../bash-4.2-patched/pat
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-03-12 08:53:23 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2012-03-07 20:08:48.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-03-12 08:53:25.0 +0100 @@ -1,0 +2,5 @@ +Fri Mar 9 17:44:52 UTC 2012 - wer...@suse.de + +- Avoid endless loop in user completion caused by endpw patches + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.Hx0m6l/_old 2012-03-12 08:53:28.0 +0100 +++ /var/tmp/diff_new_pack.Hx0m6l/_new 2012-03-12 08:53:28.0 +0100 @@ -270,7 +270,7 @@ %patch3 -p0 -b .2.4.4 %patch4 -p0 -b .evalexp %patch5 -p0 -b .warnlc -%patch6 -p0 -b .endpw +#%patch6 -p0 -b .endpw %patch7 -p0 -b .decl %patch8 -p0 -b .async %patch9 -p0 -b .extended_quote @@ -287,7 +287,7 @@ %patch22 -p0 -b .wrap %patch23 -p0 -b .conf %patch24 -p0 -b .metamode -%patch25 -p0 -b .endpw +#%patch25 -p0 -b .endpw %patch40 -p0 -b .bashrc %patch46 -p0 -b .notimestamp %patch0 -p0 -b .0 @@ -301,7 +301,7 @@ %patch22 -p2 -b .wrap %patch23 -p2 -b .conf %patch24 -p2 -b .metamode -%patch25 -p2 -b .endpw +#%patch25 -p2 -b .endpw %patch30 -p0 -b .destdir %patch20 -p0 -b .0 -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2012-03-07 20:08:45 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-12-21 09:59:26.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2012-03-07 20:08:48.0 +0100 @@ -1,0 +2,12 @@ +Tue Mar 6 12:15:18 UTC 2012 - wer...@suse.de + +- Add small patch for be able to use nanoseconds in comparision + of time stamps of files (bnc#750640) + +--- +Tue Mar 6 09:33:30 UTC 2012 - wer...@suse.de + +- Reenable patch for bnc#725657 with latest change from latest + git repository of the patch. + +--- New: bash-4.2-nsec.dif Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.fBRfDD/_old 2012-03-07 20:08:51.0 +0100 +++ /var/tmp/diff_new_pack.fBRfDD/_new 2012-03-07 20:08:51.0 +0100 @@ -40,6 +40,7 @@ License:GPL-2.0+ Group: System/Shells Url:http://www.gnu.org/software/bash/bash.html +# Git: http://git.savannah.gnu.org/cgit/bash.git Source0:ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}.tar.gz Source1:ftp://ftp.gnu.org/gnu/readline/readline-%{rl_vers}.tar.gz Source2:bash-%{bash_vers}-patches.tar.bz2 @@ -72,6 +73,7 @@ Patch15:bash-3.2-longjmp.dif Patch16:bash-4.0-setlocale.dif Patch17:bash-4.0-headers.dif +Patch18:bash-4.2-nsec.dif Patch20:readline-%{rl_vers}.dif Patch21:readline-4.3-input.dif Patch22:readline-6.1-wrap.patch @@ -255,11 +257,12 @@ %prep %setup -q -n bash-%{bash_vers}%{extend} -b1 -b2 -b3 -for p in ../bash-%{bash_vers}-patches/*; do -test -e $p || break -test "${p##*/}" = "bash-4.2-pwd.patch" && continue -echo Patch $p -patch -s -p0 < $p +for patch in ../bash-%{bash_vers}-patches/*; do +level=-p1 +test -e $patch || break +[[ $(head -n 1 $patch) =~ From ]] || level=-p0 +echo Patch $patch +patch -s $level < $patch done unset p %patch1 -p0 -b .manual @@ -279,6 +282,7 @@ %patch15 -p0 -b .longjmp %patch16 -p0 -b .setlocale %patch17 -p0 -b .headers +%patch18 -p0 -b .nsec %patch21 -p0 -b .zerotty %patch22 -p0 -b .wrap %patch23 -p0 -b .conf @@ -569,8 +573,9 @@ %install_info_delete --info-dir=%{_infodir} %{_infodir}/readline.info.gz %clean +LD_LIBRARY_PATH=%{buildroot}/%{_lib} \ ldd -u -r %{buildroot}/bin/bash || true -ldd -u -r %{buildroot}%{_libdir}/libreadline.so || true +ldd -u -r %{buildroot}/%{_lib}/libreadline.so.* || true %{?buildroot: %{__rm} -rf %{buildroot}} %files ++ bash-4.2-nsec.dif ++ --- test.c +++ test.c 2012-03-06 11:14:00.149934027 + @@ -309,8 +309,17 @@ filecomp (s, t, op) switch (op) { +#if defined(_BSD_SOURCE) || defined(_SVID_SOURCE) || (defined(_XOPEN_SOURCE) && ((_XOPEN_SOURCE - 0) >= 700)) || (defined(_POSIX_C_SOURCE) && ((_POSIX_C_SOURCE - 0) >= 200809L)) +# define st_mtimcmp(t1, t2, CMP) \ + (((t1).st_mtim.tv_sec == (t2).st_mtim.tv_sec) ? \ + ((t1).st_mtim.tv_nsec CMP (t2).st_mtim.tv_nsec) : \ + ((t1).st_mtim.tv_sec CMP (t2).st_mtim.tv_sec)) +case OT: return (r1 < r2 || (r2 == 0 && st_mtimcmp(st1, st2, <))); +case NT: return (r1 > r2 || (r1 == 0 && st_mtimcmp(st1, st2, >))); +#else case OT: return (r1 < r2 || (r2 == 0 && st1.st_mtime < st2.st_mtime)); case NT: return (r1 > r2 || (r1 == 0 && st1.st_mtime > st2.st_mtime)); +#endif case EF: return (same_file (s, t, &st1, &st2)); } return (FALSE); ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-pwd.patch new/bash-4.2-patches/bash-4.2-pwd.patch --- old/bash-4.2-patches/bash-4.2-pwd.patch 2011-10-25 19:04:39.0 +0200 +++ new/bash-4.2-patches/bash-4.2-pwd.patch 2012-03-06 10:32:00.0 +0100 @@ -1,394 +1,393 @@ -*** ../bash-4.2-patched/bashline.c 2011-01-16 15:32:47.0 -0500 bashline.c 2011-07-08 16:30:01.0 -0400 -*** -*** 122,125 122,128 - static int bash_push_line __P((void)); - -+ static rl_icppfunc_t *save_directory_hook __P((void)); -+ static void reset_directory_hook __P((rl_icppfunc_t *)); -+ - static void cleanup_expansion_error __P((void)); - static void maybe_make_readline_line __P((char *)); -*** -*** 244,251 249,
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-12-21 09:59:24 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-11-28 12:53:04.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2011-12-21 09:59:26.0 +0100 @@ -1,0 +2,10 @@ +Tue Dec 20 20:01:48 UTC 2011 - co...@suse.com + +- add autoconf as buildrequire to avoid implicit dependency + +--- +Mon Dec 19 14:34:41 UTC 2011 - co...@suse.de + +- remove suse_update_config calls - obsolete + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.MKdoyE/_old 2011-12-21 09:59:28.0 +0100 +++ /var/tmp/diff_new_pack.MKdoyE/_new 2011-12-21 09:59:28.0 +0100 @@ -16,14 +16,13 @@ # - Name: bash -BuildRequires: bison ncurses-devel +BuildRequires: autoconf +BuildRequires: bison +BuildRequires: ncurses-devel %if %suse_version > 1020 BuildRequires: fdupes %endif -License:GPL-2.0+ -Group: System/Shells %define bash_vers 4.2 %define rl_vers 6.2 %define extend"" @@ -36,8 +35,10 @@ Recommends: bash-doc = %bash_vers %endif Version:4.2 -Release:5 +Release:0 Summary:The GNU Bourne-Again Shell +License:GPL-2.0+ +Group: System/Shells Url:http://www.gnu.org/software/bash/bash.html Source0:ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}.tar.gz Source1:ftp://ftp.gnu.org/gnu/readline/readline-%{rl_vers}.tar.gz @@ -95,13 +96,12 @@ specification (IEEE Working Group 1003.2). %package -n bash-doc -License:GPL-2.0+ Summary:Documentation how to Use the GNU Bourne-Again Shell Group: Documentation/Man Provides: bash:%{_infodir}/bash.info.gz PreReq: %install_info_prereq Version:4.2 -Release:5 +Release:0 %if %suse_version > 1120 BuildArch: noarch %endif @@ -115,7 +115,6 @@ %else %package -n bash-lang -License:GPL-2.0+ Summary:Languages for package bash Group: System/Localization Provides: bash-lang = %{version} @@ -126,11 +125,10 @@ %endif %package -n bash-devel -License:GPL-2.0+ Summary:Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version:4.2 -Release:5 +Release:0 %description -n bash-devel This package contains the C header files for writing loadable new @@ -138,11 +136,10 @@ on the compilers command line. %package -n bash-loadables -License:GPL-2.0+ Summary:Loadable bash builtins Group: System/Shells Version:4.2 -Release:5 +Release:0 %description -n bash-loadables This package contains the examples for the ready-to-dynamic-load @@ -199,12 +196,11 @@ %package -n libreadline6 -License:GPL-2.0+ Summary:The Readline Library Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version:6.2 -Release:5 +Release:0 %if %suse_version > 1020 Recommends: readline-doc = %{version} %endif @@ -222,12 +218,11 @@ includes history and search functionality. %package -n readline-devel -License:GPL-2.0+ Summary:Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a Version:6.2 -Release:5 +Release:0 Requires: libreadline6 = %{version} Requires: ncurses-devel %if %suse_version > 1020 @@ -244,13 +239,12 @@ to develop applications that require these. %package -n readline-doc -License:GPL-2.0+ Summary:Documentation how to Use and Program with the Readline Library Group: System/Libraries Provides: readline:%{_infodir}/readline.info.gz PreReq: %install_info_prereq Version:6.2 -Release:5 +Release:0 %if %suse_version > 1120 BuildArch: noarch %endif @@ -316,7 +310,6 @@ MACHTYPE=${CPU}-suse-linux export LANG LC_ALL HOSTTYPE MACHTYPE pushd ../readline-%{rl_vers}%{extend} -%{?suse_update_config:%{suse_update_config -f support}} autoconf cflags () { @@ -407,7 +400,6 @@ CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS" export CC_FOR_BUILD CFLAGS_FOR_BUILD CFLAGS LDFLAGS CC -%{
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-12-06 18:00:24 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.nb4Nnl/_old 2011-12-06 18:02:10.0 +0100 +++ /var/tmp/diff_new_pack.nb4Nnl/_new 2011-12-06 18:02:10.0 +0100 @@ -22,7 +22,7 @@ %if %suse_version > 1020 BuildRequires: fdupes %endif -License:GPLv2+ +License:GPL-2.0+ Group: System/Shells %define bash_vers 4.2 %define rl_vers 6.2 @@ -95,7 +95,7 @@ specification (IEEE Working Group 1003.2). %package -n bash-doc -License:GPLv2+ +License:GPL-2.0+ Summary:Documentation how to Use the GNU Bourne-Again Shell Group: Documentation/Man Provides: bash:%{_infodir}/bash.info.gz @@ -115,7 +115,7 @@ %else %package -n bash-lang -License:GPLv2+ +License:GPL-2.0+ Summary:Languages for package bash Group: System/Localization Provides: bash-lang = %{version} @@ -126,7 +126,7 @@ %endif %package -n bash-devel -License:GPLv2+ +License:GPL-2.0+ Summary:Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version:4.2 @@ -138,7 +138,7 @@ on the compilers command line. %package -n bash-loadables -License:GPLv2+ +License:GPL-2.0+ Summary:Loadable bash builtins Group: System/Shells Version:4.2 @@ -199,7 +199,7 @@ %package -n libreadline6 -License:GPLv2+ +License:GPL-2.0+ Summary:The Readline Library Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} @@ -222,7 +222,7 @@ includes history and search functionality. %package -n readline-devel -License:GPLv2+ +License:GPL-2.0+ Summary:Include Files and Libraries mandatory for Development Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a @@ -244,7 +244,7 @@ to develop applications that require these. %package -n readline-doc -License:GPLv2+ +License:GPL-2.0+ Summary:Documentation how to Use and Program with the Readline Library Group: System/Libraries Provides: readline:%{_infodir}/readline.info.gz -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-11-28 12:53:02 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-11-22 17:47:21.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2011-11-28 12:53:04.0 +0100 @@ -1,0 +2,11 @@ +Fri Nov 25 17:08:30 UTC 2011 - wer...@suse.de + +- Make build check quiet + +--- +Fri Nov 25 16:32:14 UTC 2011 - wer...@suse.de + +- Update bash 4.2 to patch level 20 +- Update readline 6.2 to patch level 2 + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.pwDRYE/_old 2011-11-28 12:53:07.0 +0100 +++ /var/tmp/diff_new_pack.pwDRYE/_new 2011-11-28 12:53:07.0 +0100 @@ -372,7 +372,8 @@ CFLAGS_FOR_BUILD="$CFLAGS" LDFLAGS_FOR_BUILD="$LDFLAGS" export CC_FOR_BUILD CFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD CFLAGS LDFLAGS CC - ./configure --disable-static --build=%{_target_cpu}-suse-linux \ + ./configure --build=%{_target_cpu}-suse-linux\ + --disable-static\ --prefix=%{_prefix} \ --with-curses \ --mandir=%{_mandir} \ ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-assoc-reassign-memleak.patch new/bash-4.2-patches/bash-4.2-assoc-reassign-memleak.patch --- old/bash-4.2-patches/bash-4.2-assoc-reassign-memleak.patch 2011-10-07 17:00:28.0 +0200 +++ new/bash-4.2-patches/bash-4.2-assoc-reassign-memleak.patch 1970-01-01 01:00:00.0 +0100 @@ -1,14 +0,0 @@ -*** ../bash-4.2-patched/assoc.c2009-08-05 20:19:40.0 -0400 assoc.c2011-10-04 20:23:07.0 -0400 -*** -*** 78,81 78,86 -if (b == 0) - return -1; -+ /* If we are overwriting an existing element's value, we're not going to -+ use the key. Nothing in the array assignment code path frees the key -+ string, so we can free it here to avoid a memory leak. */ -+ if (b->key != key) -+ free (key); -FREE (b->data); -b->data = value ? savestring (value) : (char *)0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-quoted-nulls.patch new/bash-4.2-patches/bash-4.2-quoted-nulls.patch --- old/bash-4.2-patches/bash-4.2-quoted-nulls.patch2011-05-12 10:59:19.0 +0200 +++ new/bash-4.2-patches/bash-4.2-quoted-nulls.patch1970-01-01 01:00:00.0 +0100 @@ -1,18 +0,0 @@ -*** ../bash-4.2-patched/subst.c2011-03-06 14:11:11.0 -0500 subst.c2011-05-11 11:23:33.0 -0400 -*** -*** 3707,3711 - } -else if (string[i] == CTLNUL) -! i++; - -prev_i = i; 3710,3717 - } -else if (string[i] == CTLNUL) -! { -!i++; -!continue; -! } - -prev_i = i; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-read-assoc-array.patch new/bash-4.2-patches/bash-4.2-read-assoc-array.patch --- old/bash-4.2-patches/bash-4.2-read-assoc-array.patch2011-06-21 18:54:47.0 +0200 +++ new/bash-4.2-patches/bash-4.2-read-assoc-array.patch1970-01-01 01:00:00.0 +0100 @@ -1,40 +0,0 @@ -*** ../bash-4.2-patched/builtins/read.def 2011-01-04 11:43:36.0 -0500 builtins/read.def 2011-06-21 10:31:02.0 -0400 -*** -*** 456,460 -add_unwind_protect (xfree, input_string); -interrupt_immediately++; -- terminate_immediately++; - -unbuffered_read = (nchars > 0) || (delim != '\n') || input_is_pipe; 456,459 -*** -*** 513,516 512,516 -if (retval <= 0) - { -+CHECK_TERMSIG; - eof = 1; - break; -*** -*** 623,627 - -interrupt_immediately--; -- terminate_immediately--; - - #if defined (ARRAY_VARS) 623,626 -*** -*** 643,646 642,651 - return EXECUTION_FAILURE; /* readonly or noassign */ - } -+ if (assoc_p (var)) -+ { -+ builtin_error (_("%s: cannot convert associative to indexed array"), arrayname); -+xfree (input_string); -+return EXECUTION_FAILURE; /* existing
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-11-22 17:47:19 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-11-21 12:34:19.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2011-11-22 17:47:21.0 +0100 @@ -1,0 +2,6 @@ +Mon Nov 21 15:35:05 UTC 2011 - wer...@suse.de + +- Disable endpwent() in rl_username_completion_function() as this + cause a deadlock in a futex of the glibc (bnc#731556) + +--- Other differences: -- ++ bash-4.2-endpw.dif ++ --- /var/tmp/diff_new_pack.MlqEvD/_old 2011-11-22 17:47:24.0 +0100 +++ /var/tmp/diff_new_pack.MlqEvD/_new 2011-11-22 17:47:24.0 +0100 @@ -1,48 +1,58 @@ --- bashline.c -+++ bashline.c 2011-11-11 13:22:00.119146416 + -@@ -2148,10 +2148,10 @@ bash_groupname_completion_function (text - if (gnamelen == 0 || (STREQN (gname, grent->gr_name, gnamelen))) - break; - } -+ endgrent (); - - if (grent == 0) - { -- endgrent (); - return ((char *)NULL); bashline.c 2011-11-21 12:41:19.831646479 + +@@ -2149,6 +2149,7 @@ bash_groupname_completion_function (text } + value = savestring (grent->gr_name); ++ endgrent (); + return (value); + #endif + } --- examples/loadables/finfo.c -+++ examples/loadables/finfo.c 2011-11-11 13:21:12.319218165 + -@@ -269,9 +269,11 @@ struct stat *st; - printmode((int) st->st_mode); - printf("Link count: %d\n", (int) st->st_nlink); examples/loadables/finfo.c 2011-11-21 12:23:17.331147246 + +@@ -269,6 +269,7 @@ struct stat *st; pw = getpwuid(st->st_uid); -+ endpwent(); owner = pw ? pw->pw_name : "unknown"; printf("Uid of owner: %d (%s)\n", (int) st->st_uid, owner); ++ endpwent(); gr = getgrgid(st->st_gid); -+ endgrent(); owner = gr ? gr->gr_name : "unknown"; printf("Gid of owner: %d (%s)\n", (int) st->st_gid, owner); - printf("Device type: %d\n", (int) st->st_rdev); -@@ -348,12 +350,14 @@ int flags; +@@ -277,6 +278,7 @@ struct stat *st; + printf("File last access time: %s", ctime (&st->st_atime)); + printf("File last modify time: %s", ctime (&st->st_mtime)); + printf("File last status change time: %s", ctime (&st->st_ctime)); ++ endgrent(); + fflush(stdout); + return(0); + } +@@ -345,16 +347,18 @@ int flags; + else if (flags & OPT_PMASK) printf("%o\n", getperm(st->st_mode) & pmask); else if (flags & OPT_UID) { - pw = getpwuid(st->st_uid); -+ endpwent(); - if (flags & OPT_ASCII) +- pw = getpwuid(st->st_uid); +- if (flags & OPT_ASCII) ++ if (flags & OPT_ASCII) { ++ pw = getpwuid(st->st_uid); printf("%s\n", pw ? pw->pw_name : "unknown"); - else +- else ++ endpwent(); ++ } else printf("%d\n", st->st_uid); } else if (flags & OPT_GID) { - gr = getgrgid(st->st_gid); -+ endgrent(); - if (flags & OPT_ASCII) +- gr = getgrgid(st->st_gid); +- if (flags & OPT_ASCII) ++ if (flags & OPT_ASCII) { ++ gr = getgrgid(st->st_gid); printf("%s\n", gr ? gr->gr_name : "unknown"); - else +- else ++ endgrent(); ++ } else + printf("%d\n", st->st_gid); + } else if (flags & OPT_SIZE) + printf("%ld\n", (long) st->st_size); --- examples/loadables/id.c -+++ examples/loadables/id.c2011-11-11 13:19:36.515148229 + examples/loadables/id.c2011-11-21 12:39:06.895646231 + @@ -42,6 +42,7 @@ #if !defined (HAVE_GETPW_DECLS) @@ -51,31 +61,72 @@ #endif extern struct group *getgrgid (); -@@ -146,6 +147,7 @@ inituser (uname) +@@ -136,18 +137,26 @@ static int + inituser (uname) + char *uname; + { +- struct passwd *pwd; +- + if (uname) + { ++ struct passwd *pwd; ++ int r; ++ ++ r = 0; + pwd = getpwnam (uname); + if (pwd == 0) + { builtin_error ("%s: no such user", uname); - return -1; +-return -1; ++r = -1; } +- ruid = euid = pwd->pw_uid; +- rgid = egid = pwd->pw_gid; ++ else ++ { ++ruid = euid = pwd->
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-11-21 12:34:18 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-11-16 17:17:01.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2011-11-21 12:34:19.0 +0100 @@ -1,0 +2,6 @@ +Fri Nov 18 12:03:56 UTC 2011 - wer...@suse.de + +- Enforce bind references to global function symbols to the + definition within libreadline + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.4T9HBd/_old 2011-11-21 12:34:34.0 +0100 +++ /var/tmp/diff_new_pack.4T9HBd/_new 2011-11-21 12:34:34.0 +0100 @@ -326,15 +326,13 @@ case "${!var}" in *${flag}*) return esac + set -o noclobber case "$flag" in -Wl,*) - set -o noclobber - echo 'int main () { return 0; }' > ldtest.c - if ${CC:-gcc} -Werror $flag -o /dev/null -xc ldtest.c > /dev/null 2>&1 ; then + if echo 'int main () { return 0; }' | \ +${CC:-gcc} -Werror $flag -o /dev/null -xc - > /dev/null 2>&1 ; then eval $var=\${$var:+\$$var\ }$flag fi - set +o noclobber - rm -f ldtest.c ;; *) if ${CC:-gcc} -Werror $flag -S -o /dev/null -xc /dev/null > /dev/null 2>&1 ; then @@ -344,6 +342,7 @@ eval $var=\${$var:+\$$var\ }$flag fi esac + set +o noclobber } echo 'int main () { return !(sizeof(void*) >= 8); }' | gcc -x c -o test64 - if ./test64 ; then @@ -365,7 +364,8 @@ cflags -pipe CFLAGS cflags -Wl,--as-needed LDFLAGS cflags -Wl,-O2 LDFLAGS - cflags -Wl,--hash-size=16699 LDFLAGS + cflags -Wl,--hash-size=8599LDFLAGS + cflags -Wl,-Bsymbolic-functions LDFLAGS cflags -Wl,-rpath,%{_ldldir}/%{bash_vers} LDFLAGS CC=gcc CC_FOR_BUILD="$CC" @@ -388,7 +388,9 @@ # /proc is required for correct configuration test -d /dev/fd || { echo "/proc is not mounted!" >&2; exit 1; } ln -sf ../readline-%{rl_vers} readline - export LD_LIBRARY_PATH=$PWD/../readline-%{rl_vers} + LD_LIBRARY_PATH=$PWD/../readline-%{rl_vers} + export LD_LIBRARY_PATH + LDFLAGS="${LDFLAGS/hash-size=8599/hash-size=16699}" CC="gcc -I$PWD -L$PWD/../readline-%{rl_vers}" %if %_minsh cflags -Os CFLAGS -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-11-16 17:16:54 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-11-14 11:49:44.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2011-11-16 17:17:01.0 +0100 @@ -1,0 +2,7 @@ +Wed Nov 16 11:11:21 UTC 2011 - wer...@suse.de + +- Use libtinfo if available otherwise libncurses, this avoids + linkage against libncursesw of libreadline (required due + bnc #729226) + +--- Other differences: -- ++ bash-4.2.dif ++ --- /var/tmp/diff_new_pack.g7DDDZ/_old 2011-11-16 17:17:12.0 +0100 +++ /var/tmp/diff_new_pack.g7DDDZ/_new 2011-11-16 17:17:12.0 +0100 @@ -195,7 +195,7 @@ +RL_INCDIR=/usr/include -TERMCAP_LIB="-ltermcap" -+TERMCAP_LIB="-lncurses" ++echo 'int main () { return 0; }' | gcc -ltinfo -o /dev/null -xc - > /dev/null 2>&1 && TERMCAP_LIB="-ltinfo" || TERMCAP_LIB="-lncurses" # cannot rely on the presence of getopts while [ $# -gt 0 ]; do @@ -211,7 +211,7 @@ - SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`' + SHLIB_XLDFLAGS='-Wl,-rpath-link,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`' SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' -+ SHLIB_LIBS=-lncurses ++ echo 'int main () { return 0; }' | gcc -ltinfo -o /dev/null -xc - > /dev/null 2>&1 && SHLIB_LIBS=-ltinfo || SHLIB_LIBS=-lncurses ;; freebsd2*) ++ readline-6.2.dif ++ --- /var/tmp/diff_new_pack.g7DDDZ/_old 2011-11-16 17:17:12.0 +0100 +++ /var/tmp/diff_new_pack.g7DDDZ/_new 2011-11-16 17:17:12.0 +0100 @@ -125,7 +125,7 @@ - SHLIB_XLDFLAGS='-Wl,-rpath,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`' + SHLIB_XLDFLAGS='-Wl,-rpath-link,$(libdir) -Wl,-soname,`basename $@ $(SHLIB_MINOR)`' SHLIB_LIBVERSION='$(SHLIB_LIBSUFF).$(SHLIB_MAJOR)$(SHLIB_MINOR)' -+ SHLIB_LIBS=-lncurses ++ echo 'int main () { return 0; }' | gcc -ltinfo -o /dev/null -xc - > /dev/null 2>&1 && SHLIB_LIBS=-ltinfo || SHLIB_LIBS=-lncurses ;; freebsd2*) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-11-14 11:49:43 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-11-02 11:47:21.0 +0100 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2011-11-14 11:49:44.0 +0100 @@ -1,0 +2,12 @@ +Fri Nov 11 15:27:12 UTC 2011 - wer...@suse.de + +- Avoid memory mapped /var/run/nscd/passwd at shutdown by simply + unmapping this only used area if parent is systemd or SysVinit + +--- +Fri Nov 11 13:45:40 UTC 2011 - wer...@suse.de + +- Always close get(pw|gr)func with endpw() respectivly with endgr() + to avoid memory mapped passwd/groups of cache files from nscd + +--- New: bash-4.2-endpw.dif bash-4.2-nscdunmap.dif readline-6.2-endpw.dif Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.rmTAzE/_old 2011-11-14 11:49:46.0 +0100 +++ /var/tmp/diff_new_pack.rmTAzE/_new 2011-11-14 11:49:46.0 +0100 @@ -59,12 +59,14 @@ Patch3: bash-4.2-2.4.4.patch Patch4: bash-3.0-evalexp.patch Patch5: bash-3.0-warn-locale.patch +Patch6: bash-4.2-endpw.dif Patch7: bash-3.0-decl.patch 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 +Patch13:bash-4.2-nscdunmap.dif Patch14:bash-4.2-sigrestart.patch Patch15:bash-3.2-longjmp.dif Patch16:bash-4.0-setlocale.dif @@ -74,6 +76,7 @@ Patch22:readline-6.1-wrap.patch Patch23:readline-5.2-conf.patch Patch24:readline-6.2-metamode.patch +Patch25:readline-6.2-endpw.dif Patch30:readline-6.2-destdir.patch Patch40:bash-4.1-bash.bashrc.dif Patch46:man2html-no-timestamp.patch @@ -270,12 +273,14 @@ %patch3 -p0 -b .2.4.4 %patch4 -p0 -b .evalexp %patch5 -p0 -b .warnlc +%patch6 -p0 -b .endpw %patch7 -p0 -b .decl %patch8 -p0 -b .async %patch9 -p0 -b .extended_quote %patch10 -p0 -b .printf %patch11 -p0 -b .plugins %patch12 -p0 -b .completion +%patch13 -p0 -b .nscdunmap %patch14 -p0 -b .sigrestart %patch15 -p0 -b .longjmp %patch16 -p0 -b .setlocale @@ -284,6 +289,7 @@ %patch22 -p0 -b .wrap %patch23 -p0 -b .conf %patch24 -p0 -b .metamode +%patch25 -p0 -b .endpw %patch40 -p0 -b .bashrc %patch46 -p0 -b .notimestamp %patch0 -p0 -b .0 @@ -297,6 +303,7 @@ %patch22 -p2 -b .wrap %patch23 -p2 -b .conf %patch24 -p2 -b .metamode +%patch25 -p2 -b .endpw %patch30 -p0 -b .destdir %patch20 -p0 -b .0 ++ bash-4.2-endpw.dif ++ --- bashline.c +++ bashline.c 2011-11-11 13:22:00.119146416 + @@ -2148,10 +2148,10 @@ bash_groupname_completion_function (text if (gnamelen == 0 || (STREQN (gname, grent->gr_name, gnamelen))) break; } + endgrent (); if (grent == 0) { - endgrent (); return ((char *)NULL); } --- examples/loadables/finfo.c +++ examples/loadables/finfo.c 2011-11-11 13:21:12.319218165 + @@ -269,9 +269,11 @@ struct stat *st; printmode((int) st->st_mode); printf("Link count: %d\n", (int) st->st_nlink); pw = getpwuid(st->st_uid); + endpwent(); owner = pw ? pw->pw_name : "unknown"; printf("Uid of owner: %d (%s)\n", (int) st->st_uid, owner); gr = getgrgid(st->st_gid); + endgrent(); owner = gr ? gr->gr_name : "unknown"; printf("Gid of owner: %d (%s)\n", (int) st->st_gid, owner); printf("Device type: %d\n", (int) st->st_rdev); @@ -348,12 +350,14 @@ int flags; printf("%o\n", getperm(st->st_mode) & pmask); else if (flags & OPT_UID) { pw = getpwuid(st->st_uid); + endpwent(); if (flags & OPT_ASCII) printf("%s\n", pw ? pw->pw_name : "unknown"); else printf("%d\n", st->st_uid); } else if (flags & OPT_GID) { gr = getgrgid(st->st_gid); + endgrent(); if (flags & OPT_ASCII) printf("%s\n", gr ? gr->gr_name : "unknown"); else --- examples/loadables/id.c +++ examples/loadables/id.c 2011-11-11 13:19:36.515148229 + @@ -42,6 +42,7 @@ #if !defined (HAVE_GETPW_DECLS) extern struct passwd *getpwuid (); +extern void endpwent
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-11-02 11:47:20 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-10-26 15:33:44.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2011-11-02 11:47:21.0 +0100 @@ -1,0 +2,5 @@ +Wed Nov 2 08:23:24 UTC 2011 - wer...@suse.de + +- Disable last patch as it seems a bit broken (bnc#725657) + +--- Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.7VO08R/_old 2011-11-02 11:47:23.0 +0100 +++ /var/tmp/diff_new_pack.7VO08R/_new 2011-11-02 11:47:23.0 +0100 @@ -260,6 +260,7 @@ %setup -q -n bash-%{bash_vers}%{extend} -b1 -b2 -b3 for p in ../bash-%{bash_vers}-patches/*; do test -e $p || break +test "${p##*/}" = "bash-4.2-pwd.patch" && continue echo Patch $p patch -s -p0 < $p done -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2011-10-26 15:20:35 Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) Package is "bash", Maintainer is "wer...@suse.com" Changes: --- /work/SRC/openSUSE:Factory/bash/bash.changes2011-09-23 01:52:23.0 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2011-10-26 15:33:44.0 +0200 @@ -1,0 +2,11 @@ +Tue Oct 25 17:11:23 UTC 2011 - wer...@suse.de + +- Add direxpand patch from upstream (bnc#725657) + +--- +Fri Oct 7 15:01:42 UTC 2011 - wer...@suse.de + +- Add patch from upstream mailing list to avoid memory leak by + reassigning associative array variable + +--- Other differences: -- ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-assoc-reassign-memleak.patch new/bash-4.2-patches/bash-4.2-assoc-reassign-memleak.patch --- old/bash-4.2-patches/bash-4.2-assoc-reassign-memleak.patch 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash-4.2-assoc-reassign-memleak.patch 2011-10-07 17:00:28.0 +0200 @@ -0,0 +1,14 @@ +*** ../bash-4.2-patched/assoc.c2009-08-05 20:19:40.0 -0400 +--- assoc.c2011-10-04 20:23:07.0 -0400 +*** +*** 78,81 +--- 78,86 +if (b == 0) + return -1; ++ /* If we are overwriting an existing element's value, we're not going to ++ use the key. Nothing in the array assignment code path frees the key ++ string, so we can free it here to avoid a memory leak. */ ++ if (b->key != key) ++ free (key); +FREE (b->data); +b->data = value ? savestring (value) : (char *)0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-pwd.patch new/bash-4.2-patches/bash-4.2-pwd.patch --- old/bash-4.2-patches/bash-4.2-pwd.patch 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash-4.2-pwd.patch 2011-10-25 19:04:39.0 +0200 @@ -0,0 +1,394 @@ +*** ../bash-4.2-patched/bashline.c 2011-01-16 15:32:47.0 -0500 +--- bashline.c 2011-07-08 16:30:01.0 -0400 +*** +*** 122,125 +--- 122,128 + static int bash_push_line __P((void)); + ++ static rl_icppfunc_t *save_directory_hook __P((void)); ++ static void reset_directory_hook __P((rl_icppfunc_t *)); ++ + static void cleanup_expansion_error __P((void)); + static void maybe_make_readline_line __P((char *)); +*** +*** 244,251 +--- 249,262 + int dircomplete_spelling = 0; + ++ /* Expand directory names during word/filename completion. */ ++ int dircomplete_expand = 0; ++ + static char *bash_completer_word_break_characters = " \t\n\"'@><=;|&(:"; + static char *bash_nohostname_word_break_characters = " \t\n\"'><=;|&(:"; + /* )) */ + ++ static const char *default_filename_quote_characters = " \t\n\\\"'@<>=;|&()#$`?*[!:{~"; /*}*/ ++ static char *custom_filename_quote_characters = 0; ++ + static rl_hook_func_t *old_rl_startup_hook = (rl_hook_func_t *)NULL; + +*** +*** 502,506 +/* Tell the completer that we might want to follow symbolic links or + do other expansion on directory names. */ +! rl_directory_rewrite_hook = bash_directory_completion_hook; + +rl_filename_rewrite_hook = bash_filename_rewrite_hook; +--- 513,517 +/* Tell the completer that we might want to follow symbolic links or + do other expansion on directory names. */ +! set_directory_hook (); + +rl_filename_rewrite_hook = bash_filename_rewrite_hook; +*** +*** 530,534 + +/* characters that need to be quoted when appearing in filenames. */ +! rl_filename_quote_characters = " \t\n\\\"'@<>=;|&()#$`?*[!:{~";/*}*/ + +rl_filename_quoting_function = bash_quote_filename; +--- 541,545 + +/* characters that need to be quoted when appearing in filenames. */ +! rl_filename_quote_characters = default_filename_quote_characters; + +rl_filename_quoting_function = bash_quote_filename; +*** +*** 565,570 +rl_attempted_completion_function = attempt_shell_completion; +rl_completion_entry_function = NULL; +- rl_directory_rewrite_hook = bash_directory_completion_hook; +rl_ignore_some_completions_function = filename_completion_ignore; + } + +--- 588,595 +rl_attempted_completion_function = attempt_shell_completion; +rl_completion_entry_function = NULL;
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at Mon Sep 19 21:03:45 CEST 2011. --- bash/bash.changes 2011-06-21 19:03:05.0 +0200 +++ /mounts/work_src_done/STABLE/bash/bash.changes 2011-09-19 17:00:02.0 +0200 @@ -1,0 +2,5 @@ +Mon Sep 19 14:59:39 UTC 2011 - co...@suse.com + +- remove autoreqprov and author lists + +--- Package does not exist at destination yet. Using Fallback bash Destination is bash calling whatdependson for head-i586 Old: _service:download_files:bash-4.2.tar.gz _service:download_files:readline-6.2.tar.gz Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.DH4pFd/_old 2011-09-19 21:03:40.0 +0200 +++ /var/tmp/diff_new_pack.DH4pFd/_new 2011-09-19 21:03:40.0 +0200 @@ -35,7 +35,6 @@ Suggests: command-not-found Recommends: bash-doc = %bash_vers %endif -AutoReqProv:on Version:4.2 Release:5 Summary:The GNU Bourne-Again Shell @@ -92,13 +91,6 @@ be a conformant implementation of the IEEE Posix Shell and Tools specification (IEEE Working Group 1003.2). - - -Authors: - -Brian Fox -Chet Ramey - %package -n bash-doc License:GPLv2+ Summary:Documentation how to Use the GNU Bourne-Again Shell @@ -107,7 +99,6 @@ PreReq: %install_info_prereq Version:4.2 Release:5 -AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch %endif @@ -116,12 +107,6 @@ This package contains the documentation for using the bourne shell interpreter Bash. - - -Authors: - -Brian Fox -Chet Ramey %if %{defined lang_package} %lang_package(bash) %else @@ -143,27 +128,18 @@ Group: Development/Languages/C and C++ Version:4.2 Release:5 -AutoReqProv:on %description -n bash-devel This package contains the C header files for writing loadable new builtins for the interpreter Bash. Use -I /usr/include/bash/ on the compilers command line. - - -Authors: - -Brian Fox -Chet Ramey - %package -n bash-loadables License:GPLv2+ Summary:Loadable bash builtins Group: System/Shells Version:4.2 Release:5 -AutoReqProv:on %description -n bash-loadables This package contains the examples for the ready-to-dynamic-load @@ -219,12 +195,6 @@ whoami Print out username of current user. - -Authors: - -Brian Fox -Chet Ramey - %package -n libreadline6 License:GPLv2+ Summary:The Readline Library @@ -242,20 +212,12 @@ # Provides: readline = 6.2 Obsoletes: readline <= 6.1 -AutoReqProv:on %description -n libreadline6 The readline library is used by the Bourne Again Shell (bash, the standard command interpreter) for easy editing of command lines. This includes history and search functionality. - - -Authors: - -Brian Fox -Chet Ramey - %package -n readline-devel License:GPLv2+ Summary:Include Files and Libraries mandatory for Development @@ -268,7 +230,6 @@ %if %suse_version > 1020 Recommends: readline-doc = %{version} %endif -AutoReqProv:on # bug437293 %ifarch ppc64 Obsoletes: readline-devel-64bit @@ -279,13 +240,6 @@ This package contains all necessary include files and libraries needed to develop applications that require these. - - -Authors: - -Brian Fox -Chet Ramey - %package -n readline-doc License:GPLv2+ Summary:Documentation how to Use and Program with the Readline Library @@ -294,7 +248,6 @@ PreReq: %install_info_prereq Version:6.2 Release:5 -AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch %endif @@ -303,13 +256,6 @@ This package contains the documentation for using the readline library as well as programming with the interface of the readline library. - - -Authors: - -Brian Fox -Chet Ramey - %prep %setup -q -n bash-%{bash_vers}%{extend} -b1 -b2 -b3 for p in ../bash-%{bash_vers}-patches/*; do Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at Wed Jun 22 10:46:35 CEST 2011. --- bash/bash.changes 2011-03-22 13:17:49.0 +0100 +++ /mounts/work_src_done/STABLE/bash/bash.changes 2011-06-21 19:03:05.0 +0200 @@ -1,0 +2,23 @@ +Tue Jun 21 18:58:56 CEST 2011 - wer...@suse.de + +- Add fix from upstream mailing list to avoid crash + +--- +Fri Jun 17 11:43:00 UTC 2011 - co...@novell.com + +- use original source URLs + +--- +Thu Jun 16 15:03:04 CEST 2011 - wer...@suse.de + +- Fix the fix for bug bnc#681286 to be able to avoid both a not + expanding glob as well as the infinit loop in multi byte locale + +--- +Thu May 12 12:04:28 CEST 2011 - wer...@suse.de + +- Update bash 4.2 to patch level 10 +- Add patch from upstream to avoid loosing quoted-nulls +- Add modified patch to avod endless loop in UTF-8 locale + +--- calling whatdependson for head-i586 Old: bash-4.2.tar.bz2 readline-6.2.tar.bz2 New: _service:download_files:bash-4.2.tar.gz _service:download_files:readline-6.2.tar.gz bash-4.2.tar.gz readline-6.2.tar.gz Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.MHtiet/_old 2011-06-22 10:46:23.0 +0200 +++ /var/tmp/diff_new_pack.MHtiet/_new 2011-06-22 10:46:23.0 +0200 @@ -37,11 +37,11 @@ %endif AutoReqProv:on Version:4.2 -Release:4 +Release:5 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 -Source1:ftp://ftp.gnu.org/gnu/readline/readline-%{rl_vers}.tar.bz2 +Source0:ftp://ftp.gnu.org/gnu/bash/bash-%{bash_vers}.tar.gz +Source1:ftp://ftp.gnu.org/gnu/readline/readline-%{rl_vers}.tar.gz Source2:bash-%{bash_vers}-patches.tar.bz2 Source3:readline-%{rl_vers}-patches.tar.bz2 Source4:run-tests @@ -106,7 +106,7 @@ Provides: bash:%{_infodir}/bash.info.gz PreReq: %install_info_prereq Version:4.2 -Release:4 +Release:5 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch @@ -142,7 +142,7 @@ Summary:Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version:4.2 -Release:4 +Release:5 AutoReqProv:on %description -n bash-devel @@ -162,7 +162,7 @@ Summary:Loadable bash builtins Group: System/Shells Version:4.2 -Release:4 +Release:5 AutoReqProv:on %description -n bash-loadables @@ -231,7 +231,7 @@ Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version:6.2 -Release:4 +Release:5 %if %suse_version > 1020 Recommends: readline-doc = %{version} %endif @@ -262,7 +262,7 @@ Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a Version:6.2 -Release:4 +Release:5 Requires: libreadline6 = %{version} Requires: ncurses-devel %if %suse_version > 1020 @@ -293,7 +293,7 @@ Provides: readline:%{_infodir}/readline.info.gz PreReq: %install_info_prereq Version:6.2 -Release:4 +Release:5 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-quoted-nulls.patch new/bash-4.2-patches/bash-4.2-quoted-nulls.patch --- old/bash-4.2-patches/bash-4.2-quoted-nulls.patch1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash-4.2-quoted-nulls.patch2011-05-12 10:59:19.0 +0200 @@ -0,0 +1,18 @@ +*** ../bash-4.2-patched/subst.c2011-03-06 14:11:11.0 -0500 +--- subst.c2011-05-11 11:23:33.0 -0400 +*** +*** 3707,3711 + } +else if (string[i] == CTLNUL) +! i++; + +prev_i = i; +--- 3710,3717 + } +else if (string[i] == CTLNUL) +! { +!i++; +!continue; +! } + +prev_i = i; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-read-assoc-array.patch new/bash-4.2-patches/bash-4.2-read-assoc-array.patch --- old/bash-4.2-patches/bash-4.2-read-assoc-array.patch1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash-4.2-read-assoc-array.patch2011-06-21 18:54:47.
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at Tue Mar 22 17:51:06 CET 2011. --- bash/bash.changes 2011-03-15 18:31:41.0 +0100 +++ /mounts/work_src_done/STABLE/bash/bash.changes 2011-03-22 13:17:49.0 +0100 @@ -1,0 +2,6 @@ +Tue Mar 22 13:16:43 CET 2011 - wer...@suse.de + +- Remove patch to avod endless loop in UTF-8 locale as it breaks + glob expanding (bnc#681286) + +--- calling whatdependson for head-i586 Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.n1m2BD/_old 2011-03-22 17:50:37.0 +0100 +++ /var/tmp/diff_new_pack.n1m2BD/_new 2011-03-22 17:50:37.0 +0100 @@ -37,7 +37,7 @@ %endif AutoReqProv:on Version:4.2 -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 @@ -106,7 +106,7 @@ Provides: bash:%{_infodir}/bash.info.gz PreReq: %install_info_prereq Version:4.2 -Release:3 +Release:4 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch @@ -142,7 +142,7 @@ Summary:Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version:4.2 -Release:3 +Release:4 AutoReqProv:on %description -n bash-devel @@ -162,7 +162,7 @@ Summary:Loadable bash builtins Group: System/Shells Version:4.2 -Release:3 +Release:4 AutoReqProv:on %description -n bash-loadables @@ -231,7 +231,7 @@ Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version:6.2 -Release:3 +Release:4 %if %suse_version > 1020 Recommends: readline-doc = %{version} %endif @@ -262,7 +262,7 @@ Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a Version:6.2 -Release:3 +Release:4 Requires: libreadline6 = %{version} Requires: ncurses-devel %if %suse_version > 1020 @@ -293,7 +293,7 @@ Provides: readline:%{_infodir}/readline.info.gz PreReq: %install_info_prereq Version:6.2 -Release:3 +Release:4 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-xdupmbstowcs2.patch new/bash-4.2-patches/bash-4.2-xdupmbstowcs2.patch --- old/bash-4.2-patches/bash-4.2-xdupmbstowcs2.patch 2011-03-15 18:19:59.0 +0100 +++ new/bash-4.2-patches/bash-4.2-xdupmbstowcs2.patch 1970-01-01 01:00:00.0 +0100 @@ -1,19 +0,0 @@ -*** ../bash-4.2-patched/lib/glob/xmbsrtowcs.c 2010-05-30 18:36:27.0 -0400 lib/glob/xmbsrtowcs.c 2011-03-14 14:22:11.0 -0400 -*** -*** 174,180 -wcslength = mbsnrtowcs(NULL, &tmp_p, nms, 0, &tmp_state); - -/* Conversion failed. */ -! if (wcslength == (size_t)-1) - { - free (wsbuf); - *destp = NULL; 174,180 -wcslength = mbsnrtowcs(NULL, &tmp_p, nms, 0, &tmp_state); - -/* Conversion failed. */ -! if (wcslength == 0 || wcslength == (size_t)-1) - { - free (wsbuf); - *destp = NULL; Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at Wed Mar 16 10:11:02 CET 2011. --- bash/bash.changes 2011-03-09 12:02:19.0 +0100 +++ /mounts/work_src_done/STABLE/bash/bash.changes 2011-03-15 18:31:41.0 +0100 @@ -1,0 +2,7 @@ +Tue Mar 15 18:28:58 CET 2011 - wer...@suse.de + +- Update bash 4.2 to patch level 8 +- Add Ctr-C patch from upstream +- Add fix for endless loop in UTF-8 locale + +--- calling whatdependson for head-i586 Old: bash-4.2-history.dif Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.K6CbqJ/_old 2011-03-16 10:09:16.0 +0100 +++ /var/tmp/diff_new_pack.K6CbqJ/_new 2011-03-16 10:09:16.0 +0100 @@ -37,7 +37,7 @@ %endif AutoReqProv:on Version:4.2 -Release:2 +Release:3 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 @@ -66,7 +66,6 @@ Patch10:bash-3.2-printf.patch Patch11:bash-4.0-loadables.dif Patch12:bash-4.1-completion.dif -Patch13:bash-4.2-history.dif Patch14:bash-4.2-sigrestart.patch Patch15:bash-3.2-longjmp.dif Patch16:bash-4.0-setlocale.dif @@ -107,7 +106,7 @@ Provides: bash:%{_infodir}/bash.info.gz PreReq: %install_info_prereq Version:4.2 -Release:2 +Release:3 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch @@ -143,7 +142,7 @@ Summary:Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version:4.2 -Release:2 +Release:3 AutoReqProv:on %description -n bash-devel @@ -163,7 +162,7 @@ Summary:Loadable bash builtins Group: System/Shells Version:4.2 -Release:2 +Release:3 AutoReqProv:on %description -n bash-loadables @@ -232,7 +231,7 @@ Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version:6.2 -Release:2 +Release:3 %if %suse_version > 1020 Recommends: readline-doc = %{version} %endif @@ -263,7 +262,7 @@ Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a Version:6.2 -Release:2 +Release:3 Requires: libreadline6 = %{version} Requires: ncurses-devel %if %suse_version > 1020 @@ -294,7 +293,7 @@ Provides: readline:%{_infodir}/readline.info.gz PreReq: %install_info_prereq Version:6.2 -Release:2 +Release:3 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch @@ -330,7 +329,6 @@ %patch10 -p0 -b .printf %patch11 -p0 -b .plugins %patch12 -p0 -b .completion -%patch13 -p0 -b .history %patch14 -p0 -b .sigrestart %patch15 -p0 -b .longjmp %patch16 -p0 -b .setlocale ++ bash-4.2-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-ctl-c.patch new/bash-4.2-patches/bash-4.2-ctl-c.patch --- old/bash-4.2-patches/bash-4.2-ctl-c.patch 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.2-patches/bash-4.2-ctl-c.patch 2011-03-15 18:23:54.0 +0100 @@ -0,0 +1,174 @@ +*** ../bash-4.2-patched/jobs.c 2011-01-07 10:59:29.0 -0500 +--- jobs.c 2011-03-11 10:57:57.0 -0500 +*** +*** 2213,2216 +--- 2213,2220 + static SigHandler *old_sigint_handler = INVALID_SIGNAL_HANDLER; + ++ static int wait_sigint_received; ++ static int child_caught_sigint; ++ static int waiting_for_child; ++ + static void + restore_sigint_handler () +*** +*** 2220,2228 +set_signal_handler (SIGINT, old_sigint_handler); +old_sigint_handler = INVALID_SIGNAL_HANDLER; + } + } + +- static int wait_sigint_received; +- + /* Handle SIGINT while we are waiting for children in a script to exit. + The `wait' builtin should be interruptible, but all others should be +--- 2224,2231 +set_signal_handler (SIGINT, old_sigint_handler); +old_sigint_handler = INVALID_SIGNAL_HANDLER; ++ waiting_for_child = 0; + } + } + + /* Handle SIGINT while we are waiting for children in a script to exit. + The `wait' builtin should be interruptible, but all others should be +*** +*** 2257,2261 +/* XXX - should this be interrupt_state? If it is, the shell will act + as if it got the SIGINT interrupt. */ +! wait_sigint_received = 1; + +/* Otherwise effectively ignore the SIGINT and allow the running job to +--- 2260,2271 +/* XXX - should this be interrupt_state? If it is, th
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at Wed Mar 9 13:18:30 CET 2011. --- bash/bash.changes 2011-03-08 18:49:06.0 +0100 +++ /mounts/work_src_done/STABLE/bash/bash.changes 2011-03-09 12:02:19.0 +0100 @@ -1,0 +2,7 @@ +Wed Mar 9 12:00:48 CET 2011 - wer...@suse.de + +- Avoid siglongjmp, compare with + http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00070.html + use temprary solution from Chet + +--- calling whatdependson for head-i586 New: bash-4.2-history-myown.dif.bz2 Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.6PTvHb/_old 2011-03-09 13:07:35.0 +0100 +++ /var/tmp/diff_new_pack.6PTvHb/_new 2011-03-09 13:07:35.0 +0100 @@ -37,7 +37,7 @@ %endif AutoReqProv:on Version:4.2 -Release:1 +Release:2 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 @@ -49,6 +49,11 @@ Source6:dot.profile Source7:bash-rpmlintrc Source8:baselibs.conf +# Remember unsafe method, compare with +# http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00070.html +# http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00071.html +# http://lists.gnu.org/archive/html/bug-bash/2011-03/msg00073.html +Source9:bash-4.2-history-myown.dif.bz2 Patch0: bash-%{bash_vers}.dif Patch1: bash-2.03-manual.patch Patch2: bash-4.0-security.patch @@ -102,7 +107,7 @@ Provides: bash:%{_infodir}/bash.info.gz PreReq: %install_info_prereq Version:4.2 -Release:1 +Release:2 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch @@ -138,7 +143,7 @@ Summary:Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version:4.2 -Release:1 +Release:2 AutoReqProv:on %description -n bash-devel @@ -158,7 +163,7 @@ Summary:Loadable bash builtins Group: System/Shells Version:4.2 -Release:1 +Release:2 AutoReqProv:on %description -n bash-loadables @@ -227,7 +232,7 @@ Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version:6.2 -Release:1 +Release:2 %if %suse_version > 1020 Recommends: readline-doc = %{version} %endif @@ -258,7 +263,7 @@ Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a Version:6.2 -Release:1 +Release:2 Requires: libreadline6 = %{version} Requires: ncurses-devel %if %suse_version > 1020 @@ -289,7 +294,7 @@ Provides: readline:%{_infodir}/readline.info.gz PreReq: %install_info_prereq Version:6.2 -Release:1 +Release:2 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch ++ bash-4.2-history-myown.dif.bz2 ++ --- shell.c +++ shell.c 2011-03-08 17:25:55.160426342 + @@ -261,6 +261,11 @@ static const struct { { (char *)0x0, Int, (int *)0x0, (char **)0x0 } }; +#if defined (HAVE_POSIX_SIGSETJMP) +volatile procenv_t terminating_now; +volatile sig_atomic_t jump_with_sig; +#endif /* HAVE_POSIX_SIGSETJMP */ + /* These are extern so execute_simple_command can set them, and then longjmp back to main to execute a shell script, instead of calling main () again and resulting in indefinite, possibly fatal, stack @@ -379,6 +384,39 @@ main (argc, argv, env) if (code) exit (2); +#if defined (HAVE_POSIX_SIGSETJMP) + /* Catch signals here */ + if (sigsetjmp (terminating_now, 1)) +{ + int sig = jump_with_sig; + + /* I don't believe this condition ever tests true. */ + if (sig == SIGINT && signal_is_trapped (SIGINT)) + run_interrupt_trap (); + +# if defined (HISTORY) + if (interactive_shell && sig != SIGABRT) + maybe_save_shell_history (); +# endif /* HISTORY */ + +# if defined (JOB_CONTROL) + if (sig == SIGHUP && (interactive || (subshell_environment & (SUBSHELL_COMSUB|SUBSHELL_PROCSUB + hangup_all_jobs (); + end_job_control (); +# endif /* JOB_CONTROL */ + +# if defined (PROCESS_SUBSTITUTION) + unlink_fifo_list (); +# endif /* PROCESS_SUBSTITUTION */ + + run_exit_trap (); + set_signal_handler (sig, SIG_DFL); + kill (getpid (), sig); + _exit(0); +} + jump_with_sig = 0; +#endif /* HAVE_POSIX_SIGSETJMP */ + xtrace_init (); #if defined (USING_BASH_MALLOC) && defined (DEBUG) && !defined (DISABLE_MALLOC_WRAPPERS) --- sig.c +++ sig.c 2011-03-08 17:26:31.627928783 + @@ -503,7 +503,7 @@ termsig_sighandler (sig)
commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at Sun Feb 27 13:31:35 CET 2011. --- bash/bash.changes 2011-02-17 11:09:16.0 +0100 +++ bash/bash.changes 2011-02-25 18:10:04.0 +0100 @@ -1,0 +2,5 @@ +Fri Feb 25 17:08:09 UTC 2011 - wer...@suse.de + +- Add patch bash41-010 + +--- calling whatdependson for head-i586 Other differences: -- ++ bash.spec ++ --- /var/tmp/diff_new_pack.bGrfeh/_old 2011-02-27 13:31:04.0 +0100 +++ /var/tmp/diff_new_pack.bGrfeh/_new 2011-02-27 13:31:04.0 +0100 @@ -36,7 +36,7 @@ %endif AutoReqProv:on Version:4.1 -Release:22 +Release:23 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 @@ -106,7 +106,7 @@ Provides: bash:%{_infodir}/bash.info.gz PreReq: %install_info_prereq Version:4.1 -Release:18 +Release:19 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch @@ -142,7 +142,7 @@ Summary:Include Files mandatory for Development of bash loadable builtins Group: Development/Languages/C and C++ Version:4.1 -Release:18 +Release:19 AutoReqProv:on %description -n bash-devel @@ -162,7 +162,7 @@ Summary:Loadable bash builtins Group: System/Shells Version:4.1 -Release:18 +Release:19 AutoReqProv:on %description -n bash-loadables @@ -231,7 +231,7 @@ Group: System/Libraries Provides: bash:/%{_lib}/libreadline.so.%{rl_major} Version:6.1 -Release:18 +Release:19 %if %suse_version > 1020 Recommends: readline-doc = %{version} %endif @@ -262,7 +262,7 @@ Group: Development/Libraries/C and C++ Provides: bash:%{_libdir}/libreadline.a Version:6.1 -Release:18 +Release:19 Requires: libreadline6 = %{version} Requires: ncurses-devel %if %suse_version > 1020 @@ -293,7 +293,7 @@ Provides: readline:%{_infodir}/readline.info.gz PreReq: %install_info_prereq Version:6.1 -Release:18 +Release:19 AutoReqProv:on %if %suse_version > 1120 BuildArch: noarch ++ bash-4.1-patches.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.1-patches/bash41-010 new/bash-4.1-patches/bash41-010 --- old/bash-4.1-patches/bash41-010 1970-01-01 01:00:00.0 +0100 +++ new/bash-4.1-patches/bash41-010 2011-02-25 16:27:44.0 +0100 @@ -0,0 +1,68 @@ +BASH PATCH REPORT += + +Bash-Release: 4.1 +Patch-ID: bash41-010 + +Bug-Reported-by: Stephane Jourdois +Bug-Reference-ID: +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-05/msg00165.html + +Bug-Description: + +The expansion of the \W prompt string escape sequence incorrectly used +strcpy to copy overlapping strings. Only memmove works in this case. + +Patch (apply with `patch -p0'): + +*** ../bash-4.1-patched/parse.y2009-12-30 12:51:42.0 -0500 +--- parse.y2011-02-24 16:40:48.0 -0500 +*** +*** 5153,5157 + t = strrchr (t_string, '/'); + if (t) +!strcpy (t_string, t + 1); + } + } +--- 5153,5157 + t = strrchr (t_string, '/'); + if (t) +!memmove (t_string, t + 1, strlen (t)); + } + } +*** ../bash-4.1-patched/y.tab.c2009-12-30 12:52:02.0 -0500 +--- y.tab.c2011-02-24 16:50:27.0 -0500 +*** +*** 7482,7486 + t = strrchr (t_string, '/'); + if (t) +!strcpy (t_string, t + 1); + } + } +--- 7482,7486 + t = strrchr (t_string, '/'); + if (t) +!memmove (t_string, t + 1, strlen (t)); + } + } +*** +*** 8244,8246 + } + #endif /* HANDLE_MULTIBYTE */ +- +--- 8244,8245 +*** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.0 -0400 +--- patchlevel.h 2010-01-14 09:38:08.0 -0500 +*** +*** 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 9 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 + looks for to find the patch level (for the sccs version string). */ + +! #