diff options
author | 2005-01-31 15:08:50 +0000 | |
---|---|---|
committer | 2005-01-31 15:08:50 +0000 | |
commit | be09db7c872faba467d2317a674aca1f0105eeba (patch) | |
tree | a1534568b6df4c7835a0320491584c25bd4930b2 | |
parent | -Wsign-compare clean, Andrey Matveev <andrushock@korovino.net> (diff) | |
download | wireguard-openbsd-be09db7c872faba467d2317a674aca1f0105eeba.tar.xz wireguard-openbsd-be09db7c872faba467d2317a674aca1f0105eeba.zip |
warn(3) + _exit(2) instead of err(3) in the forked child
From: Andrey Matveev <andrushock@korovino.net>
-rw-r--r-- | usr.sbin/authpf/authpf.c | 5 |
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 */ |