- use tcgetattr() on STDOUT instead of STDIN so that term.log
works for redirected stdin
// 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)
[ Manpages translation updates ]
* Italian (Beatrice Torracca). Closes: #696601
+
+ [ Michael Vogt ]
+ * apt-pkg/deb/dpkgpm.cc:
+ - use tcgetattr() on STDOUT instead of STDIN so that term.log
+ works for redirected stdin
-- Christian Perrier <bubulle@debian.org> Mon, 24 Dec 2012 07:01:20 +0100