OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 11-Aug-2004 15:20:47
Branch: HEAD Handle: 2004081114204600
Modified files:
openpkg-src/bash bash.patch bash.spec
Log:
apply to more segfault fixing patches
Summary:
Revision Changes Path
1.10 +35 -0 openpkg-src/bash/bash.patch
1.54 +1 -1 openpkg-src/bash/bash.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/bash/bash.patch
============================================================================
$ cvs diff -u -r1.9 -r1.10 bash.patch
--- openpkg-src/bash/bash.patch 6 Aug 2004 10:49:36 -0000 1.9
+++ openpkg-src/bash/bash.patch 11 Aug 2004 13:20:46 -0000 1.10
@@ -199,3 +199,38 @@
#else /* !HAVE_TZNAME */
off = -zone.tz_minuteswest;
#endif /* !HAVE_TZNAME */
+
+-----------------------------------------------------------------------------
+
+Fix segfault when accessing an unset array.
+http://lists.gnu.org/archive/html/bug-bash/2004-08/msg00026.html
+
+Index: arrayfunc.c
+--- arrayfunc.c.orig 2003-12-19 06:03:09 +0100
++++ arrayfunc.c 2004-08-11 15:17:03 +0200
+@@ -611,7 +611,7 @@
+ var = find_variable (t);
+
+ free (t);
+- return var;
++ return (var == 0 || invisible_p (var)) ? (SHELL_VAR *)0 : var;
+ }
+
+ /* Return a string containing the elements in the array and subscript
+
+-----------------------------------------------------------------------------
+
+Fix nested brace vs. variable expansion.
+http://lists.gnu.org/archive/html/bug-bash/2004-08/msg00056.html
+
+Index: braces.c
+--- braces.c.orig 2003-12-04 17:09:52 +0100
++++ braces.c 2004-08-11 15:18:14 +0200
+@@ -402,6 +402,7 @@
+ {
+ pass_next = 1;
+ i++;
++ level++;
+ continue;
+ }
+ #endif
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/bash/bash.spec
============================================================================
$ cvs diff -u -r1.53 -r1.54 bash.spec
--- openpkg-src/bash/bash.spec 6 Aug 2004 10:49:36 -0000 1.53
+++ openpkg-src/bash/bash.spec 11 Aug 2004 13:20:46 -0000 1.54
@@ -40,7 +40,7 @@
Group: Shell
License: GPL
Version: %{V_base_real}.%{V_plvl_raw}
-Release: 20040806
+Release: 20040811
# list of sources
Source0: ftp://ftp.cwru.edu/pub/bash/bash-%{V_base_real}.tar.gz
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]