]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
apt-pkg/deb/debindexfile.cc: do not hardcode dpkg
[apt.git] / apt-pkg / deb / dpkgpm.cc
index e410594df7717a9416f64487d342334834d8827d..32ef343aa44a35d9e2c7f6b7fd98eac66697ae93 100644 (file)
@@ -517,7 +517,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