[rhel6-branch] check if stdout and stderr are the same strings in execWithRedirect (#750710)

From: Vratislav Podzimek <vpodzime redhat com>

To: anaconda-devel-list redhat com

Subject: [rhel6-branch] check if stdout and stderr are the same strings in execWithRedirect (#750710)

Date: Thu, 12 Jan 2012 13:12:33 +0100

As commented in the bug (https://bugzilla.redhat.com/show_bug.cgi?id=750710):
We have to check if stdout and stderr are the same in execWithRedirect() because if they are the same we
should open the file only once and have the same file descriptor for both stdout and stderr. Opening the file
twice (thus having two file descriptors) causes rewrites and inconsistency in the file.
--
Vratislav Podzimek