[12240] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: 7.7D Sun: telnetd

daemon@ATHENA.MIT.EDU (brlewis@MIT.EDU)
Mon Jul 18 17:25:50 1994

From: brlewis@MIT.EDU
Date: Mon, 18 Jul 94 17:25:41 -0400
To: Salvatore Valente <svalente@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: "[12235] in Athena Bugs"

For now, run the telnetd out of the telnet locker.  The bug will be
fixed in 7.7E, I think...

*** /tmp/,RCSt1a20030	Mon Jul 18 17:23:27 1994
--- telnetd/sys_term.c	Mon Jul 18 16:34:05 1994
***************
*** 1523,1529 ****
  
  	bzero(&utmpx, sizeof(utmpx));
  	SCPYN(utmpx.ut_user, ".telnet");
! 	SCPYN(utmpx.ut_line, line + sizeof("/dev/") - 1);
  	utmpx.ut_pid = pid;
  	utmpx.ut_id[0] = 't';
  	utmpx.ut_id[1] = 'n';
--- 1523,1530 ----
  
  	bzero(&utmpx, sizeof(utmpx));
  	SCPYN(utmpx.ut_user, ".telnet");
! 	/* the "/dev/" part is wrong on Solaris */
! 	SCPYN(utmpx.ut_line, line /* + sizeof("/dev/") - 1 */);
  	utmpx.ut_pid = pid;
  	utmpx.ut_id[0] = 't';
  	utmpx.ut_id[1] = 'n';

home help back first fref pref prev next nref lref last post