diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-12 09:04:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-12-12 09:04:34 +0000 |
commit | e0fff948b04329fa38cf63de570b61ab6f020f53 (patch) | |
tree | ead81013b335e7254f0a696dc6a41db961574166 /sbin | |
parent | 9b637efb70998af5a7c7a7d87ac2369de123b499 (diff) |
no longer setuid; netbsd
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/Makefile | 4 | ||||
-rw-r--r-- | sbin/route/route.c | 9 |
2 files changed, 6 insertions, 7 deletions
diff --git a/sbin/route/Makefile b/sbin/route/Makefile index f16410c9c84..dc3d47d2ba6 100644 --- a/sbin/route/Makefile +++ b/sbin/route/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.4 1997/09/21 11:38:05 deraadt Exp $ +# $OpenBSD: Makefile,v 1.5 1997/12/12 09:04:32 deraadt Exp $ PROG= route MAN= route.8 SRCS= route.c show.c keywords.c ccitt_addr.c BINOWN= root -BINMODE=4555 +BINMODE=555 route.o .depend lint tags: keywords.h diff --git a/sbin/route/route.c b/sbin/route/route.c index eae23c23973..2544380a779 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.24 1997/11/16 18:42:35 deraadt Exp $ */ +/* $OpenBSD: route.c,v 1.25 1997/12/12 09:04:33 deraadt Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: route.c,v 1.24 1997/11/16 18:42:35 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: route.c,v 1.25 1997/12/12 09:04:33 deraadt Exp $"; #endif #endif /* not lint */ @@ -88,13 +88,14 @@ union sockunion { } so_dst, so_gate, so_mask, so_genmask, so_ifa, so_ifp; typedef union sockunion *sup; -int pid, rtm_addrs, uid; +int pid, rtm_addrs; int s; int forcehost, forcenet, doflush, nflag, af, qflag, tflag, keyword(); int iflag, verbose, aflen = sizeof (struct sockaddr_in); int locking, lockrest, debugonly; struct rt_metrics rt_metrics; u_long rtm_inits; +uid_t uid; char *routename __P((struct sockaddr *)); char *netname __P((struct sockaddr *)); @@ -187,8 +188,6 @@ main(argc, argv) s = open("/dev/null", O_WRONLY, 0); else s = socket(PF_ROUTE, SOCK_RAW, 0); - seteuid(uid); - setuid(uid); if (s < 0) quit("socket"); if (*argv == NULL) |