]> git.saurik.com Git - apt.git/blobdiff - apt-inst/contrib/extracttar.cc
French updated by Christian Perrier
[apt.git] / apt-inst / contrib / extracttar.cc
index 487027c3daccf16bcba2291f89a53adef758764a..806ba796d687833839b3f52020facfe68e40ce94 100644 (file)
@@ -18,6 +18,7 @@
 // Include Files                                                       /*{{{*/
 #include<config.h>
 
+#include <apt-pkg/dirstream.h>
 #include <apt-pkg/extracttar.h>
 #include <apt-pkg/error.h>
 #include <apt-pkg/strutl.h>
@@ -145,7 +146,7 @@ bool ExtractTar::StartGzip()
    }
 
    // Fix up our FDs
-   InFd.Fd(Pipes[0]);
+   InFd.OpenDescriptor(Pipes[0], FileFd::ReadOnly, FileFd::None, true);
    close(Pipes[1]);
    return true;
 }