Blame SOURCES/bash42-018

ff19ae
			     BASH PATCH REPORT
ff19ae
			     =================
ff19ae
ff19ae
Bash-Release:	4.2
ff19ae
Patch-ID:	bash42-018
ff19ae
ff19ae
Bug-Reported-by:	Thomas Cort <tcort@minix3.org>
ff19ae
Bug-Reference-ID:	<BANLkTik-ebGGw3k_1YtB=RyfV1bsqdxC_g@mail.gmail.com>
ff19ae
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-06/msg00110.html
ff19ae
ff19ae
Bug-Description:
ff19ae
ff19ae
Bash fails to compile unless JOB_CONTROL is defined.
ff19ae
ff19ae
Patch (apply with `patch -p0'):
ff19ae
ff19ae
*** ../bash-4.2-patched/execute_cmd.c	2011-02-09 17:32:25.000000000 -0500
ff19ae
--- execute_cmd.c	2011-11-06 15:12:48.000000000 -0500
ff19ae
***************
ff19ae
*** 2197,2200 ****
ff19ae
--- 2315,2319 ----
ff19ae
      cmd->flags |= CMD_IGNORE_RETURN;
ff19ae
  
ff19ae
+ #if defined (JOB_CONTROL)
ff19ae
    lastpipe_flag = 0;
ff19ae
    begin_unwind_frame ("lastpipe-exec");
ff19ae
***************
ff19ae
*** 2216,2228 ****
ff19ae
  	  add_unwind_protect (lastpipe_cleanup, lastpipe_jid);
ff19ae
  	}
ff19ae
!       cmd->flags |= CMD_LASTPIPE;
ff19ae
      }	  
ff19ae
    if (prev >= 0)
ff19ae
      add_unwind_protect (close, prev);
ff19ae
  
ff19ae
    exec_result = execute_command_internal (cmd, asynchronous, prev, pipe_out, fds_to_close);
ff19ae
  
ff19ae
    if (lstdin > 0)
ff19ae
      restore_stdin (lstdin);
ff19ae
  
ff19ae
    if (prev >= 0)
ff19ae
--- 2335,2351 ----
ff19ae
  	  add_unwind_protect (lastpipe_cleanup, lastpipe_jid);
ff19ae
  	}
ff19ae
!       if (cmd)
ff19ae
! 	cmd->flags |= CMD_LASTPIPE;
ff19ae
      }	  
ff19ae
    if (prev >= 0)
ff19ae
      add_unwind_protect (close, prev);
ff19ae
+ #endif
ff19ae
  
ff19ae
    exec_result = execute_command_internal (cmd, asynchronous, prev, pipe_out, fds_to_close);
ff19ae
  
ff19ae
+ #if defined (JOB_CONTROL)
ff19ae
    if (lstdin > 0)
ff19ae
      restore_stdin (lstdin);
ff19ae
+ #endif
ff19ae
  
ff19ae
    if (prev >= 0)
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 17
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 18
ff19ae
  
ff19ae
  #endif /* _PATCHLEVEL_H_ */