summaryrefslogtreecommitdiffstats
path: root/usr.bin/rlogin/rlogin.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-08-03 23:54:49 +0000
committerache <ache@FreeBSD.org>1995-08-03 23:54:49 +0000
commitab4db4586ad7233bd111baa56e311bb163b9efd2 (patch)
tree067133ba9c494003f724c19eb5bfb5c5f842000a /usr.bin/rlogin/rlogin.c
parent73f3d20139e936992a95de2b9edaa59967c4ae1b (diff)
downloadFreeBSD-src-ab4db4586ad7233bd111baa56e311bb163b9efd2.zip
FreeBSD-src-ab4db4586ad7233bd111baa56e311bb163b9efd2.tar.gz
Back out speed reducing to 38400 for old remote rlogind.
I do some digging out on this subject and found that remote rlogind may reduce big speeds to 38400 by itself and (as more often rlogind variant) speed setting ioctl fails, so speed left on 9600. In all cases it doesn't do any real harm.
Diffstat (limited to 'usr.bin/rlogin/rlogin.c')
-rw-r--r--usr.bin/rlogin/rlogin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/rlogin/rlogin.c b/usr.bin/rlogin/rlogin.c
index 5b94357..9de1daf 100644
--- a/usr.bin/rlogin/rlogin.c
+++ b/usr.bin/rlogin/rlogin.c
@@ -101,7 +101,7 @@ u_char escapechar = '~';
char *speeds[] = {
"0", "50", "75", "110", "134", "150", "200", "300", "600", "1200",
- "1800", "2400", "4800", "9600", "19200", "38400"
+ "1800", "2400", "4800", "9600", "19200", "38400", "57600", "115200"
};
#ifdef OLDSUN
@@ -262,8 +262,6 @@ main(argc, argv)
(void)strcpy(term, (p = getenv("TERM")) ? p : "network");
if (ioctl(0, TIOCGETP, &ttyb) == 0) {
(void)strcat(term, "/");
- if (ttyb.sg_ospeed > EXTB)
- ttyb.sg_ospeed = EXTB; /* 38400 */
(void)strcat(term, speeds[(int)ttyb.sg_ospeed]);
}
OpenPOWER on IntegriCloud