Bugzilla – Attachment 1571 Details for
Bug 1528
sshd hangs when pasting more than 2k of text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
alternate patch for channels.c
channels.c.2.diff (text/plain), 920 bytes, created by
Doke Scott
on 2008-10-02 08:02:30 AEST
(
hide
)
Description:
alternate patch for channels.c
Filename:
MIME Type:
Creator:
Doke Scott
Created:
2008-10-02 08:02:30 AEST
Size:
920 bytes
patch
obsolete
>--- openssh-5.1p1/channels.c 2008-07-16 08:42:06.000000000 -0400 >+++ openssh-5.1p1-udel/channels.c 2008-10-01 17:49:33.000000000 -0400 >@@ -237,9 +237,16 @@ > c->efd = efd; > c->extended_usage = extusage; > >+#if 0 > if ((c->isatty = is_tty) != 0) > debug2("channel %d: rfd %d isatty", c->self, c->rfd); > c->wfd_isatty = is_tty || isatty(c->wfd); >+#else >+ c->isatty = isatty(c->rfd); >+ c->wfd_isatty = isatty(c->wfd); >+ debug2("channel %d: rfd %d c->isatty %d", c->self, c->rfd, c->isatty ); >+ debug2("channel %d: wfd %d c->wfd_isatty %d", c->self, c->wfd, c->wfd_isatty ); >+#endif > > /* enable nonblocking mode */ > if (nonblock) { >@@ -1602,7 +1609,7 @@ > } > return -1; > } >- if (compat20 && c->isatty && dlen >= 1 && buf[0] != '\r') { >+ if (compat20 && c->wfd_isatty && dlen >= 1 && buf[0] != '\r') { > if (tcgetattr(c->wfd, &tio) == 0 && > !(tio.c_lflag & ECHO) && (tio.c_lflag & ICANON)) { > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1528
:
1570
|
1571
|
1572
|
1677