diff options
author | Eric Norum <WENorum@lbl.gov> | 2006-04-27 18:18:49 +0000 |
---|---|---|
committer | Eric Norum <WENorum@lbl.gov> | 2006-04-27 18:18:49 +0000 |
commit | b84fbbe80b20af4448756d10a270d117c3db9d8f (patch) | |
tree | ae4aea597b462aa5f6cd2e20ed40887cc23ccef3 /cpukit/telnetd/pty.c | |
parent | Add ability to free information on task delete. (diff) | |
download | rtems-b84fbbe80b20af4448756d10a270d117c3db9d8f.tar.bz2 |
Accept <CR><NUL> as equivalent to <CR><LF>.
Diffstat (limited to 'cpukit/telnetd/pty.c')
-rw-r--r-- | cpukit/telnetd/pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/telnetd/pty.c b/cpukit/telnetd/pty.c index ae608929da..a650833cde 100644 --- a/cpukit/telnetd/pty.c +++ b/cpukit/telnetd/pty.c @@ -184,7 +184,7 @@ int read_pty(int minor) { /* Characters writed in the client side*/ return -1; } else { result=value; - if ((value=='\n') && (ptys[minor].last_cr)) result=-1; + if (ptys[minor].last_cr && ((value=='\n')||(value=='\0'))) result=-1; ptys[minor].last_cr=(value=='\r'); return result; }; |