summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-11 19:15:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-11 19:15:37 +0000
commitf09f4c6aa02ea4012faa8491d629b9c8c3b77c71 (patch)
treee4f10a011c58422d098a486f61efcccea73c260a /usr.sbin/mrouted
parent7021cb8f932f18e085425d77aee0302c44bb8da6 (diff)
revoke privs at start; tested by fenner@parc.xerox.com
Diffstat (limited to 'usr.sbin/mrouted')
-rw-r--r--usr.sbin/mrouted/main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/mrouted/main.c b/usr.sbin/mrouted/main.c
index 7a3eaff086d..8e3bd4b1cc7 100644
--- a/usr.sbin/mrouted/main.c
+++ b/usr.sbin/mrouted/main.c
@@ -33,7 +33,7 @@
#ifndef lint
static char rcsid[] =
- "@(#) $Id: main.c,v 1.3 1995/12/19 17:48:04 deraadt Exp $";
+ "@(#) $Id: main.c,v 1.4 1996/09/11 19:15:33 deraadt Exp $";
#endif
extern char *configfilename;
@@ -112,12 +112,11 @@ main(argc, argv)
int index, block;
#endif
- setlinebuf(stderr);
-
if (geteuid() != 0) {
fprintf(stderr, "must be root\n");
exit(1);
}
+ setlinebuf(stderr);
argv++, argc--;
while (argc > 0 && *argv[0] == '-') {