Blame SOURCES/bash42-026

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