mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-02 18:00:49 +02:00
Bash-4.2 patch 45
This commit is contained in:
+1
-1
@@ -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_ */
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user