diff options
author | Damien Miller <djm@mindrot.org> | 2003-04-09 20:59:48 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-04-09 20:59:48 +1000 |
commit | 996acd2476d9d34b18bb4f99012ea0927458f418 (patch) | |
tree | 1420f273ae5395fc0adc9aa25dcd44fe821884a6 /sshpty.c | |
parent | 5f16a5ee4e35d36e72f8f72fb2334087cb2ea680 (diff) |
*** empty log message ***
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -226,7 +226,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) | |||
226 | } | 226 | } |
227 | /* set tty modes to a sane state for broken clients */ | 227 | /* set tty modes to a sane state for broken clients */ |
228 | if (tcgetattr(*ptyfd, &tio) < 0) | 228 | if (tcgetattr(*ptyfd, &tio) < 0) |
229 | log("Getting tty modes for pty failed: %.100s", strerror(errno)); | 229 | logit("Getting tty modes for pty failed: %.100s", strerror(errno)); |
230 | else { | 230 | else { |
231 | tio.c_lflag |= (ECHO | ISIG | ICANON); | 231 | tio.c_lflag |= (ECHO | ISIG | ICANON); |
232 | tio.c_oflag |= (OPOST | ONLCR); | 232 | tio.c_oflag |= (OPOST | ONLCR); |
@@ -234,7 +234,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen) | |||
234 | 234 | ||
235 | /* Set the new modes for the terminal. */ | 235 | /* Set the new modes for the terminal. */ |
236 | if (tcsetattr(*ptyfd, TCSANOW, &tio) < 0) | 236 | if (tcsetattr(*ptyfd, TCSANOW, &tio) < 0) |
237 | log("Setting tty modes for pty failed: %.100s", strerror(errno)); | 237 | logit("Setting tty modes for pty failed: %.100s", strerror(errno)); |
238 | } | 238 | } |
239 | 239 | ||
240 | return 1; | 240 | return 1; |