The following commit has been merged in the master branch:
commit 0d55f02275c0439622bb58f3b3c6658aef51fb11
Author: Guillem Jover <guil...@debian.org>
Date:   Wed May 25 08:51:50 2011 +0200

    libdpkg: Fix fd_fd_filter to execute the filter on the child
    
    There was a logic error in the pid check, and the filter code was being
    executed in the parent instead of the child.
    
    Regression introduced in commit 269bbee973c46e1be0aaef82cb7e19bbc9a95aa7.
    
    Reported-by: Sven Joachim <svenj...@gmx.de>

diff --git a/lib/dpkg/compress.c b/lib/dpkg/compress.c
index eb01c5e..01becfd 100644
--- a/lib/dpkg/compress.c
+++ b/lib/dpkg/compress.c
@@ -52,7 +52,7 @@ fd_fd_filter(int fd_in, int fd_out, const char *desc, const 
char *file, ...)
        pid_t pid;
 
        pid = subproc_fork();
-       if (pid != 0) {
+       if (pid == 0) {
                if (fd_in != 0) {
                        m_dup2(fd_in, 0);
                        close(fd_in);

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to