From owner-cvs-sbin Sun Oct 27 09:42:31 1996 Return-Path: owner-cvs-sbin Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA03482 for cvs-sbin-outgoing; Sun, 27 Oct 1996 09:42:31 -0800 (PST) Received: (from fenner@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA03427; Sun, 27 Oct 1996 09:42:18 -0800 (PST) Date: Sun, 27 Oct 1996 09:42:18 -0800 (PST) From: Bill Fenner Message-Id: <199610271742.JAA03427@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sbin Subject: cvs commit: src/sbin/route route.c Sender: owner-cvs-sbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk fenner 96/10/27 09:42:16 Modified: sbin/route route.c Log: setuid back to the original caller immediately after opening the route socket. Opening the socket is the only privileged operation route requires. Make a couple of static buffers bigger, and use strncpy() and snprintf() where there's a chance of overflow. Fixes PR bin/1903 Partially Submitted by: Ollivier Robert Don't look up the network number if we're being asked to add a host route. Fixes PR bin/1900 Submitted by: Bruce A. Mah (pr bin/1900) Revision Changes Path 1.16 +19 -14 src/sbin/route/route.c