equal
deleted
inserted
replaced
|
1 BASH PATCH REPORT |
|
2 ================= |
|
3 |
|
4 Bash-Release: 4.2 |
|
5 Patch-ID: bash42-026 |
|
6 |
|
7 Bug-Reported-by: Greg Wooledge <[email protected]> |
|
8 Bug-Reference-ID: <[email protected]> |
|
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00172.html |
|
10 |
|
11 Bug-Description: |
|
12 |
|
13 The `lastpipe' option does not behave correctly on machines where the |
|
14 open file limit is less than 256. |
|
15 |
|
16 Patch (apply with `patch -p0'): |
|
17 |
|
18 *** ../bash-4.2-patched/execute_cmd.c 2011-11-21 12:04:47.000000000 -0500 |
|
19 --- execute_cmd.c 2012-04-26 11:09:30.000000000 -0400 |
|
20 *************** |
|
21 *** 2206,2210 **** |
|
22 if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0) |
|
23 { |
|
24 ! lstdin = move_to_high_fd (0, 0, 255); |
|
25 if (lstdin > 0) |
|
26 { |
|
27 --- 2325,2329 ---- |
|
28 if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0) |
|
29 { |
|
30 ! lstdin = move_to_high_fd (0, 1, -1); |
|
31 if (lstdin > 0) |
|
32 { |
|
33 *************** |
|
34 *** 2252,2256 **** |
|
35 --- 2371,2377 ---- |
|
36 } |
|
37 |
|
38 + #if defined (JOB_CONTROL) |
|
39 discard_unwind_frame ("lastpipe-exec"); |
|
40 + #endif |
|
41 |
|
42 return (exec_result); |
|
43 |
|
44 *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 |
|
45 --- patchlevel.h Thu Feb 24 21:41:34 2011 |
|
46 *************** |
|
47 *** 26,30 **** |
|
48 looks for to find the patch level (for the sccs version string). */ |
|
49 |
|
50 ! #define PATCHLEVEL 25 |
|
51 |
|
52 #endif /* _PATCHLEVEL_H_ */ |
|
53 --- 26,30 ---- |
|
54 looks for to find the patch level (for the sccs version string). */ |
|
55 |
|
56 ! #define PATCHLEVEL 26 |
|
57 |
|
58 #endif /* _PATCHLEVEL_H_ */ |