]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
Merge branch 'debian/sid' into debian/experimental
[apt.git] / apt-pkg / deb / dpkgpm.cc
index 91893c4e18deb1631d8ba4c94abd5b3ed686ce58..b975754b0323196f5417928cb843c6deb9b9900b 100644 (file)
@@ -498,7 +498,7 @@ bool pkgDPkgPM::RunScriptsWithPkgs(const char *Cnf)
 void pkgDPkgPM::DoStdin(int master)
 {
    unsigned char input_buf[256] = {0,}; 
-   ssize_t len = read(0, input_buf, sizeof(input_buf));
+   ssize_t len = read(STDIN_FILENO, input_buf, sizeof(input_buf));
    if (len)
       FileFd::Write(master, input_buf, len);
    else