Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 1995 13:01:53 -0700
From:      Sean Eric Fagan <sef@kithrup.com>
To:        jkh@freebsd.org
Subject:   forwarded
Message-ID:  <199507312001.NAA23423@kithrup.com>
Resent-Message-ID: <4670.807227115@time.cdrom.com>

next in thread | raw e-mail | index | archive | help
>From owner-bsdi-users  Mon Jul 31 13:00:01 1995
Date: Mon, 31 Jul 1995 15:42:15 -0400
From: bostic@BSDI.COM (Keith Bostic)
To: hribnak@nucleus.com
Subject: Re: Rlogin Coring and other questions
Cc: bsdi-users@BSDI.COM
Sender: owner-bsdi-users@BSDI.COM
Precedence: bulk

> 1) Ok is there a fix for Rlogin coredumping? its seems it (rlogin) can not 
>    handle any baud rates above 9600 baud.  Everything gives a memory fault...

It should handle up to 38400; regardless, here's a patch to
rlogin.c that should make the problem go away.

--keith

===================================================================
RCS file: /usr.bin/rlogin/rlogin.c,v
retrieving revision 2.1
retrieving revision 2.2
diff -c -r2.1 -r2.2
*** 2.1	1995/02/03 13:01:07
--- 2.2	1995/07/31 19:35:56
***************
*** 259,264 ****
--- 259,266 ----
  	(void)strcpy(term, (p = getenv("TERM")) ? p : "network");
  	if (ioctl(0, TIOCGETP, &ttyb) == 0) {
  		(void)strcat(term, "/");
+ 		if (ttyb.sg_ospeed >= sizeof(speeds) / sizeof(speeds[0]))
+ 			ttyb.sg_ospeed = sizeof(speeds) / sizeof(speeds[0]) - 1;
  		(void)strcat(term, speeds[(int)ttyb.sg_ospeed]);
  	}
  




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507312001.NAA23423>