Changeset cf468ea


Ignore:
Timestamp:
Apr 12, 2006, 10:21:01 AM (16 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
b237cbc
Parents:
69cde8d
Message:

Updated to -7 bash patch

File:
1 moved

Legend:

Unmodified
Added
Removed
  • patches/bash-3.1-fixes-7.patch

    r69cde8d rcf468ea  
    1 Submitted By: Matthew Burgess (matthew at linuxfromscratch dot org)
    2 Date: 2006-03-18
     1Submitted By: Jeremy Huntwork (jhuntwork at linuxfromscratch dot org)
     2Date: 2006-04-11
    33Initial Package Version: 3.1
    44Origin: http://ftp.gnu.org/gnu/bash/bash-3.1-patches/
    5 Upstream Status: From Upstream 
    6 Description: Contains patches 001-014 from upstream
     5Upstream Status: From Upstream
     6Description: Contains patches 001-016 from upstream
    77
    88diff -Naur bash-3.1.orig/doc/bash.1 bash-3.1/doc/bash.1
    9 --- bash-3.1.orig/doc/bash.1    2005-10-12 15:40:52.000000000 +0000
    10 +++ bash-3.1/doc/bash.1 2006-03-18 09:23:33.000000000 +0000
     9--- bash-3.1.orig/doc/bash.1    2005-10-12 11:40:52.000000000 -0400
     10+++ bash-3.1/doc/bash.1 2006-04-11 11:36:54.702393214 -0400
    1111@@ -6,12 +6,12 @@
    1212 .\"    Case Western Reserve University
     
    8888 If
    8989diff -Naur bash-3.1.orig/doc/bashref.texi bash-3.1/doc/bashref.texi
    90 --- bash-3.1.orig/doc/bashref.texi      2005-10-03 19:07:21.000000000 +0000
    91 +++ bash-3.1/doc/bashref.texi   2006-03-18 09:23:33.000000000 +0000
     90--- bash-3.1.orig/doc/bashref.texi      2005-10-03 15:07:21.000000000 -0400
     91+++ bash-3.1/doc/bashref.texi   2006-04-11 11:36:54.709392515 -0400
    9292@@ -961,8 +961,8 @@
    9393 (see the description of @code{shopt} in @ref{Bash Builtins})
     
    161161 variable is expanded and the resultant value is printed before
    162162diff -Naur bash-3.1.orig/doc/version.texi bash-3.1/doc/version.texi
    163 --- bash-3.1.orig/doc/version.texi      2005-09-20 18:52:56.000000000 +0000
    164 +++ bash-3.1/doc/version.texi   2006-03-18 09:23:33.000000000 +0000
     163--- bash-3.1.orig/doc/version.texi      2005-09-20 14:52:56.000000000 -0400
     164+++ bash-3.1/doc/version.texi   2006-04-11 11:36:54.710392415 -0400
    165165@@ -2,9 +2,9 @@
    166166 Copyright (C) 1988-2005 Free Software Foundation, Inc.
     
    179179+@set UPDATED-MONTH December 2005
    180180diff -Naur bash-3.1.orig/jobs.c bash-3.1/jobs.c
    181 --- bash-3.1.orig/jobs.c        2005-11-12 04:13:27.000000000 +0000
    182 +++ bash-3.1/jobs.c     2006-03-18 09:23:33.000000000 +0000
     181--- bash-3.1.orig/jobs.c        2005-11-11 23:13:27.000000000 -0500
     182+++ bash-3.1/jobs.c     2006-04-11 11:36:54.713392115 -0400
    183183@@ -619,8 +619,11 @@
    184184           * once in the parent and once in each child.  This is where
     
    285285   termination_state = last_command_exit_value;
    286286 
     287diff -Naur bash-3.1.orig/lib/glob/glob.c bash-3.1/lib/glob/glob.c
     288--- bash-3.1.orig/lib/glob/glob.c       2005-03-24 12:42:27.000000000 -0500
     289+++ bash-3.1/lib/glob/glob.c    2006-04-11 11:37:12.868577740 -0400
     290@@ -360,6 +360,7 @@
     291   count = lose = skip = 0;
     292 
     293   firstmalloc = 0;
     294+  nalloca = 0;
     295 
     296   /* If PAT is empty, skip the loop, but return one (empty) filename. */
     297   if (pat == 0 || *pat == '\0')
     298@@ -546,6 +547,8 @@
     299                firstmalloc = 0;
     300              tmplink = lastlink;
     301            }
     302+         else
     303+           tmplink = 0;
     304          free (lastlink->name);
     305          lastlink = lastlink->next;
     306          FREE (tmplink);
     307diff -Naur bash-3.1.orig/lib/glob/sm_loop.c bash-3.1/lib/glob/sm_loop.c
     308--- bash-3.1.orig/lib/glob/sm_loop.c    2005-10-16 21:21:04.000000000 -0400
     309+++ bash-3.1/lib/glob/sm_loop.c 2006-04-11 11:37:09.500914295 -0400
     310@@ -638,12 +638,13 @@
     311   CHAR *psub;                  /* pointer to sub-pattern */
     312   CHAR *pnext;                 /* pointer to next sub-pattern */
     313   CHAR *srest;                 /* pointer to rest of string */
     314-  int m1, m2;
     315+  int m1, m2, xflags;          /* xflags = flags passed to recursive matches */
     316 
     317 #if DEBUG_MATCHING
     318 fprintf(stderr, "extmatch: xc = %c\n", xc);
     319 fprintf(stderr, "extmatch: s = %s; se = %s\n", s, se);
     320 fprintf(stderr, "extmatch: p = %s; pe = %s\n", p, pe);
     321+fprintf(stderr, "extmatch: flags = %d\n", flags);
     322 #endif
     323 
     324   prest = PATSCAN (p + (*p == L('(')), pe, 0); /* ) */
     325@@ -677,8 +678,12 @@
     326                 string matches the rest of the pattern.  Also handle
     327                 multiple matches of the pattern. */
     328              if (m1)
     329-               m2 = (GMATCH (srest, se, prest, pe, flags) == 0) ||
     330-                     (s != srest && GMATCH (srest, se, p - 1, pe, flags) == 0);
     331+               {
     332+                 /* if srest > s, we are not at start of string */
     333+                 xflags = (srest > s) ? (flags & ~FNM_PERIOD) : flags;
     334+                 m2 = (GMATCH (srest, se, prest, pe, xflags) == 0) ||
     335+                       (s != srest && GMATCH (srest, se, p - 1, pe, xflags) == 0);
     336+               }
     337              if (m1 && m2)
     338                return (0);
     339            }
     340@@ -704,8 +709,10 @@
     341          srest = (prest == pe) ? se : s;
     342          for ( ; srest <= se; srest++)
     343            {
     344+             /* if srest > s, we are not at start of string */
     345+             xflags = (srest > s) ? (flags & ~FNM_PERIOD) : flags;
     346              if (GMATCH (s, srest, psub, pnext - 1, flags) == 0 &&
     347-                 GMATCH (srest, se, prest, pe, flags) == 0)
     348+                 GMATCH (srest, se, prest, pe, xflags) == 0)
     349                return (0);
     350            }
     351          if (pnext == prest)
     352@@ -726,7 +733,9 @@
     353              if (pnext == prest)
     354                break;
     355            }
     356-         if (m1 == 0 && GMATCH (srest, se, prest, pe, flags) == 0)
     357+         /* if srest > s, we are not at start of string */
     358+         xflags = (srest > s) ? (flags & ~FNM_PERIOD) : flags;
     359+         if (m1 == 0 && GMATCH (srest, se, prest, pe, xflags) == 0)
     360            return (0);
     361        }
     362       return (FNM_NOMATCH);
    287363diff -Naur bash-3.1.orig/lib/readline/display.c bash-3.1/lib/readline/display.c
    288 --- bash-3.1.orig/lib/readline/display.c        2005-11-30 19:05:02.000000000 +0000
    289 +++ bash-3.1/lib/readline/display.c     2006-03-18 09:23:33.000000000 +0000
     364--- bash-3.1.orig/lib/readline/display.c        2005-11-30 14:05:02.000000000 -0500
     365+++ bash-3.1/lib/readline/display.c     2006-04-11 11:36:54.716391815 -0400
    290366@@ -1983,11 +1983,15 @@
    291367      int pchar;
     
    332408 
    333409diff -Naur bash-3.1.orig/lib/readline/readline.c bash-3.1/lib/readline/readline.c
    334 --- bash-3.1.orig/lib/readline/readline.c       2005-07-05 02:29:35.000000000 +0000
    335 +++ bash-3.1/lib/readline/readline.c    2006-03-18 09:23:33.000000000 +0000
     410--- bash-3.1.orig/lib/readline/readline.c       2005-07-04 22:29:35.000000000 -0400
     411+++ bash-3.1/lib/readline/readline.c    2006-04-11 11:36:54.717391715 -0400
    336412@@ -282,6 +282,7 @@
    337413 {
     
    343419   return 0;
    344420diff -Naur bash-3.1.orig/lib/readline/terminal.c bash-3.1/lib/readline/terminal.c
    345 --- bash-3.1.orig/lib/readline/terminal.c       2005-11-13 01:46:54.000000000 +0000
    346 +++ bash-3.1/lib/readline/terminal.c    2006-03-18 09:23:33.000000000 +0000
     421--- bash-3.1.orig/lib/readline/terminal.c       2005-11-12 20:46:54.000000000 -0500
     422+++ bash-3.1/lib/readline/terminal.c    2006-04-11 11:36:54.718391615 -0400
    347423@@ -122,7 +122,7 @@
    348424 static char *_rl_visible_bell;
     
    365441   if (cols > 0)
    366442diff -Naur bash-3.1.orig/parse.y bash-3.1/parse.y
    367 --- bash-3.1.orig/parse.y       2005-11-12 04:14:18.000000000 +0000
    368 +++ bash-3.1/parse.y    2006-03-18 09:23:33.000000000 +0000
     443--- bash-3.1.orig/parse.y       2005-11-11 23:14:18.000000000 -0500
     444+++ bash-3.1/parse.y    2006-04-11 11:36:54.722391216 -0400
    369445@@ -2716,6 +2716,7 @@
    370446 #define P_ALLOWESC     0x02
     
    517593 
    518594diff -Naur bash-3.1.orig/patchlevel.h bash-3.1/patchlevel.h
    519 --- bash-3.1.orig/patchlevel.h  2005-07-20 17:58:20.000000000 +0000
    520 +++ bash-3.1/patchlevel.h       2006-03-18 09:23:33.000000000 +0000
     595--- bash-3.1.orig/patchlevel.h  2005-07-20 13:58:20.000000000 -0400
     596+++ bash-3.1/patchlevel.h       2006-04-11 11:37:12.869577641 -0400
    521597@@ -25,6 +25,6 @@
    522598    regexp `^#define[   ]*PATCHLEVEL', since that's what support/mkversion.sh
     
    524600 
    525601-#define PATCHLEVEL 0
    526 +#define PATCHLEVEL 14
     602+#define PATCHLEVEL 16
    527603 
    528604 #endif /* _PATCHLEVEL_H_ */
    529605diff -Naur bash-3.1.orig/subst.c bash-3.1/subst.c
    530 --- bash-3.1.orig/subst.c       2005-10-24 13:51:13.000000000 +0000
    531 +++ bash-3.1/subst.c    2006-03-18 09:23:33.000000000 +0000
     606--- bash-3.1.orig/subst.c       2005-10-24 09:51:13.000000000 -0400
     607+++ bash-3.1/subst.c    2006-04-11 11:36:54.727390716 -0400
    532608@@ -2187,7 +2187,7 @@
    533609   if (mklocal && variable_context)
     
    553629              sindex += t_index;
    554630diff -Naur bash-3.1.orig/variables.c bash-3.1/variables.c
    555 --- bash-3.1.orig/variables.c   2005-11-13 02:22:37.000000000 +0000
    556 +++ bash-3.1/variables.c        2006-03-18 09:23:33.000000000 +0000
     631--- bash-3.1.orig/variables.c   2005-11-12 21:22:37.000000000 -0500
     632+++ bash-3.1/variables.c        2006-04-11 11:36:54.731390316 -0400
    557633@@ -860,9 +860,11 @@
    558634 {
Note: See TracChangeset for help on using the changeset viewer.