Date: Wed, 24 Jul 1996 21:52:17 +0000 () From: Victor Rotanov <vitjok@fasts.lv> To: freebsd-security@FreeBSD.org Subject: unofficial rlogin security patch Message-ID: <Pine.BSF.3.91.960724215007.1220A-100000@server.fasts.lv>
next in thread | raw e-mail | index | archive | help
Hello. 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<-------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960724215007.1220A-100000>