nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

Blame SOURCES/bash42-026

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