Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 1996 12:41:31 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@GndRsh.aac.dev.com>
To:        vitjok@fasts.lv (Victor Rotanov)
Cc:        freebsd-security@freebsd.org
Subject:   Re: unofficial rlogin security patch
Message-ID:  <199607241941.MAA23153@GndRsh.aac.dev.com>
In-Reply-To: <Pine.BSF.3.91.960724215007.1220A-100000@server.fasts.lv> from Victor Rotanov at "Jul 24, 96 09:52:17 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hello.

A caution to all... this patch is _REVERSED_, apply it with
patch -r <patchfile

A note to the poster... Please produce diff files with the
command form:
diff -c ORIGINALFILE NEWFILE


> Here's the patch:
> 
> ---8<-------------------------------------------------------------------------
> *** rlogin.c	Wed Jul 24 21:46:58 1996
> --- rlogin.c.orig	Sun Jun 23 13:08:27 1996
> ***************
> *** 258,265 ****
>   		(void)fprintf(stderr, "rlogin: login/tcp: unknown service.\n");
>   		exit(1);
>   	}
> ! 	
> ! 	(void)strncpy(term, (p = getenv("TERM")) ? p : "network", 1016);
>   	if (ioctl(0, TIOCGETP, &ttyb) == 0) {
>   		(void)strcat(term, "/");
>   		(void)strcat(term, speeds[(int)ttyb.sg_ospeed]);
> --- 258,265 ----
>   		(void)fprintf(stderr, "rlogin: login/tcp: unknown service.\n");
>   		exit(1);
>   	}
> ! 
> ! 	(void)strcpy(term, (p = getenv("TERM")) ? p : "network");
>   	if (ioctl(0, TIOCGETP, &ttyb) == 0) {
>   		(void)strcat(term, "/");
>   		(void)strcat(term, speeds[(int)ttyb.sg_ospeed]);
> ---8<-------------------------------------------------------------------------
> 


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                 Reliable computers for FreeBSD



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