From ce0f1900d869066e52a33d58f399c6a9d7ae659d Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sat, 12 May 2007 18:09:24 +1000 Subject: [REDIR] Fix redirect restore on saved file descriptors As it stands if a redirection occurs on a file descriptor that was previously closed, it won't be closed after that redirection goes out of effect. This is because we don't keep track of closed file descriptors properly as we do for open ones. This patch fixes this by introducing two new states, CLOSED and REALLY_CLOSED. The first represents an initially closed descriptor which is now open while the second one represents an initally closed descriptor which is now closed. This patch is based on work by Rainer Weikusat. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index ccf8e2d..bc1b94d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-05-12 Herbert Xu + + * Fix redirect restore on closed file descriptors. + 2007-05-06 Herbert Xu * Removed unnecessary inclusion of redir.h from parser.c. -- cgit 1.4.1