rcolebaugh / rpms / bash

Forked from rpms/bash 2 years ago
Clone
287226
			     BASH PATCH REPORT
287226
			     =================
287226
287226
Bash-Release:	4.2
287226
Patch-ID:	bash42-026
287226
287226
Bug-Reported-by:	Greg Wooledge <wooledg@eeg.ccf.org>
287226
Bug-Reference-ID:	<20120425180443.GO22241@eeg.ccf.org>
287226
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00172.html
287226
287226
Bug-Description:
287226
287226
The `lastpipe' option does not behave correctly on machines where the
287226
open file limit is less than 256.
287226
287226
Patch (apply with `patch -p0'):
287226
287226
*** ../bash-4.2-patched/execute_cmd.c	2011-11-21 12:04:47.000000000 -0500
287226
--- execute_cmd.c	2012-04-26 11:09:30.000000000 -0400
287226
***************
287226
*** 2206,2210 ****
287226
    if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
287226
      {
287226
!       lstdin = move_to_high_fd (0, 0, 255);
287226
        if (lstdin > 0)
287226
  	{
287226
--- 2325,2329 ----
287226
    if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
287226
      {
287226
!       lstdin = move_to_high_fd (0, 1, -1);
287226
        if (lstdin > 0)
287226
  	{
287226
***************
287226
*** 2252,2256 ****
287226
--- 2371,2377 ----
287226
      }
287226
  
287226
+ #if defined (JOB_CONTROL)
287226
    discard_unwind_frame ("lastpipe-exec");
287226
+ #endif
287226
  
287226
    return (exec_result);
287226
287226
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
287226
--- patchlevel.h	Thu Feb 24 21:41:34 2011
287226
***************
287226
*** 26,30 ****
287226
     looks for to find the patch level (for the sccs version string). */
287226
  
287226
! #define PATCHLEVEL 25
287226
  
287226
  #endif /* _PATCHLEVEL_H_ */
287226
--- 26,30 ----
287226
     looks for to find the patch level (for the sccs version string). */
287226
  
287226
! #define PATCHLEVEL 26
287226
  
287226
  #endif /* _PATCHLEVEL_H_ */