diff options
author | matt-ucc <matt-ucc@ucc.asn.au> | 2006-03-26 13:18:30 +0000 |
---|---|---|
committer | matt-ucc <matt-ucc@ucc.asn.au> | 2006-03-26 13:18:30 +0000 |
commit | 9981da5a2f939e756fcd9b8cea3e12cef9634770 (patch) | |
tree | 48f616bf22f957433bc854b6397faf86537dc193 | |
parent | 3831670b43bf43b7c2c2dad1132f32355316a24e (diff) | |
download | dropbear-9981da5a2f939e756fcd9b8cea3e12cef9634770.tar.gz |
fix up newlines for the serial bit
-rw-r--r-- | svr-chansession.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index 1df6e79..fa2fd91 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -674,7 +674,9 @@ static void serial_connect(struct Channel *channel) { options.c_cflag &= ~CSIZE; options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG); + options.c_iflag |= (INPCK | ISTRIP); + options.c_iflag |= INLCR; tcsetattr(serial_fd, TCSANOW, &options); |