3 if [ $# -eq 3 -a "$2" = '-d' ]; then
5 elif [ $# -ne 1 ]; then
6 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
10 -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
11 -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
13 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
18 # DP: bash-4.1 upstream patch 005
26 Bug-Reported-by: werner@suse.de
27 Bug-Reference-ID: <201002251238.o1PCcYcg016893@boole.suse.de>
28 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2010-02/msg00132.html
32 When the `read' builtin times out after the timeout specified with -t is
33 exceeded, it does not reset the flags that tell signal handlers to process
34 signals immediately instead of deferring their handling. This can result
35 in unsafe functions being called from signal handlers, which can cause bash
38 Patch (apply with `patch -p0'):
40 *** ../bash-4.1-patched/builtins/read.def 2009-10-08 11:35:46.000000000 -0400
41 --- ./builtins/read.def 2010-03-17 17:35:39.000000000 -0400
46 - interrupt_immediately--;
47 - terminate_immediately--;
48 discard_unwind_frame ("read_builtin");
56 + interrupt_immediately--;
57 + terminate_immediately--;
59 #if defined (ARRAY_VARS)
60 /* If -a was given, take the string read, break it into a list of words,
61 *** ../bash-4.1-patched/patchlevel.h 2009-10-01 16:39:22.000000000 -0400
62 --- ./patchlevel.h 2010-01-14 09:38:08.000000000 -0500
65 looks for to find the patch level (for the sccs version string). */
67 ! #define PATCHLEVEL 4
69 #endif /* _PATCHLEVEL_H_ */
71 looks for to find the patch level (for the sccs version string). */
73 ! #define PATCHLEVEL 5
75 #endif /* _PATCHLEVEL_H_ */