]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't disable CR-to-NL translation when waiting for data to arrive.
authored <ed@FreeBSD.org>
Sun, 8 Mar 2009 19:09:55 +0000 (19:09 +0000)
committered <ed@FreeBSD.org>
Sun, 8 Mar 2009 19:09:55 +0000 (19:09 +0000)
commit0f248d82f6b3c86ed627009577cd722491679796
treeaa71cb0a282efba6eebb83d2d5c4c3e257e5751a
parent92da1fbd23d9243e2b4acb8589d3bcc85036b853
Don't disable CR-to-NL translation when waiting for data to arrive.

A difference between the old and the new TTY layer is that the new
implementation does not perform any post-processing before returning
data back to userspace when calling read().

sh(1)'s read turns the TTY into a raw mode before calling select(). This
means that the first character will not receive any ICRNL processing.
Inherit this flag from the original terminal attributes.

Even though this issue is not present on RELENG_*, I'm MFCing it to make
sh(1) in jails behave better.

PR: bin/129566
MFC after: 2 weeks
bin/sh/miscbltin.c