nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

Blame SOURCES/bash42-040

287226
			     BASH PATCH REPORT
287226
			     =================
287226
287226
Bash-Release:	4.2
287226
Patch-ID:	bash42-040
287226
287226
Bug-Reported-by:	Andrey Zaitsev <jstcdr@gmail.com>
287226
Bug-Reference-ID:	<CAEZVQT5PJ1Mb_Zh8LT5qz8sv+-9Q6hGfQ5DU9ZxdJ+gV7xBUaQ@mail.gmail.com>
287226
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2012-04/msg00144.html
287226
287226
Bug-Description:
287226
287226
Output redirection applied to builtin commands missed I/O errors if
287226
they happened when the file descriptor was closed, rather than on write
287226
(e.g., like with an out-of-space error on a remote NFS file system).
287226
287226
Patch (apply with `patch -p0'):
287226
287226
*** ../bash-4.2-patched/redir.c	2011-01-02 16:00:31.000000000 -0500
287226
--- redir.c	2012-04-24 20:42:12.000000000 -0400
287226
***************
287226
*** 1092,1099 ****
287226
  #if defined (BUFFERED_INPUT)
287226
  	  check_bash_input (redirector);
287226
! 	  close_buffered_fd (redirector);
287226
  #else /* !BUFFERED_INPUT */
287226
! 	  close (redirector);
287226
  #endif /* !BUFFERED_INPUT */
287226
  	}
287226
        break;
287226
--- 1092,1101 ----
287226
  #if defined (BUFFERED_INPUT)
287226
  	  check_bash_input (redirector);
287226
! 	  r = close_buffered_fd (redirector);
287226
  #else /* !BUFFERED_INPUT */
287226
! 	  r = close (redirector);
287226
  #endif /* !BUFFERED_INPUT */
287226
+ 	  if (r < 0 && (flags & RX_INTERNAL) && (errno == EIO || errno == ENOSPC))
287226
+ 	    REDIRECTION_ERROR (r, errno, -1);
287226
  	}
287226
        break;
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 39
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 40
287226
  
287226
  #endif /* _PATCHLEVEL_H_ */