summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-01-31 15:08:51 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-01-31 15:08:51 +0000
commit436c3962fea1bd45748743ca72d11c5b5d29baca (patch)
treed785d33d6138367739bebd350b45ce03a3b7c5b7 /usr.sbin
parent36a8e711e58615b5a2fba10d44c4a10b92142aa5 (diff)
warn(3) + _exit(2) instead of err(3) in the forked child
From: Andrey Matveev <andrushock@korovino.net>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/authpf/authpf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index 84d4bd48fe5..48f6f9b1732 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.87 2005/01/31 15:06:31 henning Exp $ */
+/* $OpenBSD: authpf.c,v 1.88 2005/01/31 15:08:50 henning Exp $ */
/*
* Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
@@ -675,7 +675,8 @@ change_filter(int add, const char *luser, const char *ipsrc)
err(1, "fork failed");
case 0:
execvp(PATH_PFCTL, pargv);
- err(1, "exec of %s failed", PATH_PFCTL);
+ warn("exec of %s failed", PATH_PFCTL);
+ _exit(1);
}
/* parent */