]> git.saurik.com Git - apt.git/commitdiff
merged lp:~mvo/apt/mvo
authorMichael Vogt <michael.vogt@ubuntu.com>
Fri, 4 Jan 2013 07:23:26 +0000 (08:23 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Fri, 4 Jan 2013 07:23:26 +0000 (08:23 +0100)
apt-pkg/deb/dpkgpm.cc
debian/changelog

index 6cb8bc6b61d465d90ac66d079faa5cf2fe621e65..fd1e6e085231fea7c79b92a68e1cda7be9334e70 100644 (file)
@@ -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) 
index 1779fc774abcaaeacc0d16f046f097a8071e4fad..bc1a70d6f21f6df3fe3f8b8df532751447a74e7d 100644 (file)
@@ -14,6 +14,9 @@ apt (0.9.8~exp1) UNRELEASED; urgency=low
   * lp:~mvo/apt/config-clear:
     - support Configuration.Clear() for a clear of the entire 
       configuration
+  * apt-pkg/deb/dpkgpm.cc:
+    - use tcgetattr() on STDOUT instead of STDIN so that term.log
+      works for redirected stdin
 
  -- David Kalnischkies <kalnischkies@gmail.com>  Mon, 09 Jul 2012 17:36:40 +0200