diff options
author | Michael Vogt <mvo@ubuntu.com> | 2012-12-27 00:04:27 +0100 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2012-12-27 00:04:27 +0100 |
commit | 63037b4d08624246ec4079dfd921cf9d58eb1e85 (patch) | |
tree | 387c67beed5a31928e4ece492d157b058d9cfb07 /apt-pkg/deb | |
parent | d2cca6ec46865a1f5167f846e67150dc19ca2022 (diff) |
* apt-pkg/deb/dpkgpm.cc:
- use tcgetattr() on STDOUT instead of STDIN so that term.log
works for redirected stdin
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 6cb8bc6b6..fd1e6e085 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1205,7 +1205,7 @@ bool pkgDPkgPM::Go(int OutStatusFd) // if tcgetattr does not return zero there was a error // and we do not do any pty magic - if (tcgetattr(0, &tt) == 0) + if (tcgetattr(STDOUT_FILENO, &tt) == 0) { ioctl(0, TIOCGWINSZ, (char *)&win); if (openpty(&master, &slave, NULL, &tt, &win) < 0) |