--- lib/libalpm/util.c 2013-06-18 04:38:11.000000000 +0100 +++ lib/libalpm/util.c 2013-07-15 16:53:56.000000000 +0100 @@ -543,6 +543,7 @@ while(dup2(pipefd[1], 2) == -1 && errno == EINTR); CLOSE(pipefd[0]); CLOSE(pipefd[1]); + CLOSE(cwdfd); /* use fprintf instead of _alpm_log to send output through the parent */ if(chroot(handle->root) != 0) {