diff options
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2015-12-05 17:31:43 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-12-06 01:34:31 +0100 |
commit | 2015f0d1d9370e16e895ff51dce291a94570e056 (patch) | |
tree | 160ac82dafff5710f4635387c7104757898932b3 /lib/libalpm | |
parent | 137ea39fa11c321a9c33000ff1b5c6cc3c59b47d (diff) | |
download | pacman-2015f0d1d9370e16e895ff51dce291a94570e056.tar.gz pacman-2015f0d1d9370e16e895ff51dce291a94570e056.tar.xz |
alpm_run_chroot: remove dead code
Removes a leftover error message from when fdopen and fgets were used to
read from the pipe.
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/util.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 7e8f85ed..3824d136 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"); |