Bug 1686

Summary: using -tt should also silence warnings about failed local tty operations
Product: Portable OpenSSH Reporter: Salvador Fandiño <sfandino>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: minor CC: djm
Priority: P2    
Version: 5.3p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 1626    
Attachments:
Description Flags
suppress-ttyforce.diff
none
suppress-ttyforce.diff dtucker: ok+

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.