Bug 1686 - using -tt should also silence warnings about failed local tty operations
Summary: using -tt should also silence warnings about failed local tty operations
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 5.3p1
Hardware: All All
: P2 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_5_4
  Show dependency treegraph
 
Reported: 2009-12-16 21:37 AEDT by Salvador Fandiño
Modified: 2010-03-26 10:51 AEDT (History)
1 user (show)

See Also:


Attachments
suppress-ttyforce.diff (5.63 KB, patch)
2009-12-21 10:41 AEDT, Damien Miller
no flags Details | Diff
suppress-ttyforce.diff (5.14 KB, patch)
2009-12-21 11:03 AEDT, Damien Miller
dtucker: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Salvador Fandiño 2009-12-16 21:37:20 AEDT
Running ssh with option -tt forces a pty allocation on the server even when stdin is not a tty.

In that case,  on the client side, several tty OS calls fail and generate warnings. For instance:

$ ssh -qtt my.host.org sudo cat /tmp/foo </dev/null 
tcgetattr: Inappropriate ioctl for device

As those failures are expected they should be silenced.
Comment 1 Damien Miller 2009-12-21 10:41:43 AEDT
Created attachment 1747 [details]
suppress-ttyforce.diff

suppress tcgetattr/tcsetattr warnings when force_tty_flag in effect.
Comment 2 Damien Miller 2009-12-21 10:42:47 AEDT
Please try the diff in attachment #1747 [details]
Comment 3 Damien Miller 2009-12-21 11:03:06 AEDT
Created attachment 1748 [details]
suppress-ttyforce.diff

patch with less junk. Please try this one instead.
Comment 4 Damien Miller 2010-01-09 16:04:56 AEDT
applied - this will be in OpenSSH 5.4
Comment 5 Darren Tucker 2010-03-26 10:51:28 AEDT
With the release of 5.4p1, this bug is now considered closed.