From owner-freebsd-security Wed Jul 24 12:41:58 1996 Return-Path: owner-security Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA10426 for security-outgoing; Wed, 24 Jul 1996 12:41:58 -0700 (PDT) Received: from GndRsh.aac.dev.com (GndRsh.aac.dev.com [198.145.92.241]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id MAA10421 for ; Wed, 24 Jul 1996 12:41:54 -0700 (PDT) Received: (from rgrimes@localhost) by GndRsh.aac.dev.com (8.6.12/8.6.12) id MAA23153; Wed, 24 Jul 1996 12:41:31 -0700 From: "Rodney W. Grimes" Message-Id: <199607241941.MAA23153@GndRsh.aac.dev.com> Subject: Re: unofficial rlogin security patch To: vitjok@fasts.lv (Victor Rotanov) Date: Wed, 24 Jul 1996 12:41:31 -0700 (PDT) Cc: freebsd-security@freebsd.org In-Reply-To: from Victor Rotanov at "Jul 24, 96 09:52:17 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-security@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > Hello. A caution to all... this patch is _REVERSED_, apply it with patch -r 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