svashisht / rpms / bash

Forked from rpms/bash 6 years ago
Clone
Roman Rakus 3a5a59c
			     BASH PATCH REPORT
Roman Rakus 3a5a59c
			     =================
Roman Rakus 3a5a59c
Roman Rakus 3a5a59c
Bash-Release:	4.2
Roman Rakus 3a5a59c
Patch-ID:	bash42-018
Roman Rakus 3a5a59c
Roman Rakus 3a5a59c
Bug-Reported-by:	Thomas Cort <tcort@minix3.org>
Roman Rakus 3a5a59c
Bug-Reference-ID:	<BANLkTik-ebGGw3k_1YtB=RyfV1bsqdxC_g@mail.gmail.com>
Roman Rakus 3a5a59c
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-06/msg00110.html
Roman Rakus 3a5a59c
Roman Rakus 3a5a59c
Bug-Description:
Roman Rakus 3a5a59c
Roman Rakus 3a5a59c
Bash fails to compile unless JOB_CONTROL is defined.
Roman Rakus 3a5a59c
Roman Rakus 3a5a59c
Patch (apply with `patch -p0'):
Roman Rakus 3a5a59c
Roman Rakus 3a5a59c
*** ../bash-4.2-patched/execute_cmd.c	2011-02-09 17:32:25.000000000 -0500
Roman Rakus 3a5a59c
--- execute_cmd.c	2011-11-06 15:12:48.000000000 -0500
Roman Rakus 3a5a59c
***************
Roman Rakus 3a5a59c
*** 2197,2200 ****
Roman Rakus 3a5a59c
--- 2315,2319 ----
Roman Rakus 3a5a59c
      cmd->flags |= CMD_IGNORE_RETURN;
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
+ #if defined (JOB_CONTROL)
Roman Rakus 3a5a59c
    lastpipe_flag = 0;
Roman Rakus 3a5a59c
    begin_unwind_frame ("lastpipe-exec");
Roman Rakus 3a5a59c
***************
Roman Rakus 3a5a59c
*** 2216,2228 ****
Roman Rakus 3a5a59c
  	  add_unwind_protect (lastpipe_cleanup, lastpipe_jid);
Roman Rakus 3a5a59c
  	}
Roman Rakus 3a5a59c
!       cmd->flags |= CMD_LASTPIPE;
Roman Rakus 3a5a59c
      }	  
Roman Rakus 3a5a59c
    if (prev >= 0)
Roman Rakus 3a5a59c
      add_unwind_protect (close, prev);
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
    exec_result = execute_command_internal (cmd, asynchronous, prev, pipe_out, fds_to_close);
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
    if (lstdin > 0)
Roman Rakus 3a5a59c
      restore_stdin (lstdin);
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
    if (prev >= 0)
Roman Rakus 3a5a59c
--- 2335,2351 ----
Roman Rakus 3a5a59c
  	  add_unwind_protect (lastpipe_cleanup, lastpipe_jid);
Roman Rakus 3a5a59c
  	}
Roman Rakus 3a5a59c
!       if (cmd)
Roman Rakus 3a5a59c
! 	cmd->flags |= CMD_LASTPIPE;
Roman Rakus 3a5a59c
      }	  
Roman Rakus 3a5a59c
    if (prev >= 0)
Roman Rakus 3a5a59c
      add_unwind_protect (close, prev);
Roman Rakus 3a5a59c
+ #endif
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
    exec_result = execute_command_internal (cmd, asynchronous, prev, pipe_out, fds_to_close);
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
+ #if defined (JOB_CONTROL)
Roman Rakus 3a5a59c
    if (lstdin > 0)
Roman Rakus 3a5a59c
      restore_stdin (lstdin);
Roman Rakus 3a5a59c
+ #endif
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
    if (prev >= 0)
Roman Rakus 3a5a59c
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
Roman Rakus 3a5a59c
--- patchlevel.h	Thu Feb 24 21:41:34 2011
Roman Rakus 3a5a59c
***************
Roman Rakus 3a5a59c
*** 26,30 ****
Roman Rakus 3a5a59c
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
! #define PATCHLEVEL 17
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
  #endif /* _PATCHLEVEL_H_ */
Roman Rakus 3a5a59c
--- 26,30 ----
Roman Rakus 3a5a59c
     looks for to find the patch level (for the sccs version string). */
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
! #define PATCHLEVEL 18
Roman Rakus 3a5a59c
  
Roman Rakus 3a5a59c
  #endif /* _PATCHLEVEL_H_ */