View | Details | Raw Unified | Return to bug 1528 | Differences between
and this patch

Collapse All | Expand All

(-)channels.c (-1 / +2 lines)
Lines 1602-1608 channel_handle_wfd(Channel *c, fd_set *r Link Here
1602
			}
1602
			}
1603
			return -1;
1603
			return -1;
1604
		}
1604
		}
1605
		if (compat20 && c->isatty && dlen >= 1 && buf[0] != '\r') {
1605
		if (compat20 && c->isatty && dlen >= 1 && dlen < 1024 &&
1606
		     buf[0] != '\r') {
1606
			if (tcgetattr(c->wfd, &tio) == 0 &&
1607
			if (tcgetattr(c->wfd, &tio) == 0 &&
1607
			    !(tio.c_lflag & ECHO) && (tio.c_lflag & ICANON)) {
1608
			    !(tio.c_lflag & ECHO) && (tio.c_lflag & ICANON)) {
1608
				/*
1609
				/*

Return to bug 1528