From f37136c04667a65088522d00d57a167e7dceb5ba Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 22 Dec 2003 11:04:13 +0000 Subject: in the same vein we can plain errx() if the geteuid check fails. --- usr.sbin/bgpd/bgpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/bgpd/bgpd.c') diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index 2a98f4deabd..091b24fdf67 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.13 2003/12/22 11:00:19 henning Exp $ */ +/* $OpenBSD: bgpd.c,v 1.14 2003/12/22 11:04:12 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer @@ -105,7 +105,7 @@ main(int argc, char *argv[]) log_init(1); /* log to stderr until daemonized */ if (geteuid()) - fatal("need root privileges", 0); + errx(1, "need root privileges"); bzero(&conf, sizeof(conf)); bzero(&mrtconf, sizeof(mrtconf)); -- cgit v1.2.3