Bash-4.2 patch 45

This commit is contained in:
Chet Ramey 2013-03-07 15:22:14 -05:00
commit f281b8f4f8
2 changed files with 11 additions and 1 deletions

View file

@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */
#define PATCHLEVEL 44
#define PATCHLEVEL 45
#endif /* _PATCHLEVEL_H_ */

10
redir.c
View file

@ -1007,6 +1007,16 @@ do_redirection_internal (redirect, flags)
close (redirector);
REDIRECTION_ERROR (r, errno, -1);
}
if ((flags & RX_UNDOABLE) && (ri == r_move_input || ri == r_move_output))
{
/* r_move_input and r_move_output add an additional close()
that needs to be undone */
if (fcntl (redirector, F_GETFD, 0) != -1)
{
r = add_undo_redirect (redir_fd, r_close_this, -1);
REDIRECTION_ERROR (r, errno, -1);
}
}
#if defined (BUFFERED_INPUT)
check_bash_input (redirector);
#endif