Removes a leftover error message from when fdopen and fgets were used to
read from the pipe.

Signed-off-by: Andrew Gregory <[email protected]>
---
 lib/libalpm/util.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 7e8f85e..3824d13 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -705,11 +705,6 @@ int _alpm_run_chroot(alpm_handle_t *handle, const char 
*cmd, char *const argv[],
                        }
                }
 
-               /* report error from above after the child has exited */
-               if(retval != 0) {
-                       _alpm_log(handle, ALPM_LOG_ERROR, _("could not open 
pipe (%s)\n"), strerror(errno));
-                       goto cleanup;
-               }
                /* check the return status, make sure it is 0 (success) */
                if(WIFEXITED(status)) {
                        _alpm_log(handle, ALPM_LOG_DEBUG, "call to waitpid 
succeeded\n");
-- 
2.6.3

Reply via email to