summaryrefslogtreecommitdiffstats
path: root/usr.sbin/authpf
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2005-12-12 16:06:01 +0000
committerbeck <beck@openbsd.org>2005-12-12 16:06:01 +0000
commitab1312c3062bb93ea3f031353bd8b308ca6f9ebe (patch)
treed10f861f561b17f3098453e9fe32a6cacf6b5469 /usr.sbin/authpf
parentBackout previous change back to 1.92 - My fault, committed diff (diff)
downloadwireguard-openbsd-ab1312c3062bb93ea3f031353bd8b308ca6f9ebe.tar.xz
wireguard-openbsd-ab1312c3062bb93ea3f031353bd8b308ca6f9ebe.zip
correct err() usage and remove the do_death which is unneeded in
the child proceess, (as noticed by <evol@online.ptt.ru>)
Diffstat (limited to 'usr.sbin/authpf')
-rw-r--r--usr.sbin/authpf/authpf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index d21abcb347d..f331dec69f3 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.95 2005/12/12 16:02:32 beck Exp $ */
+/* $OpenBSD: authpf.c,v 1.96 2005/12/12 16:06:01 beck Exp $ */
/*
* Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
@@ -687,8 +687,7 @@ change_filter(int add, const char *luser, const char *ipsrc)
/* revoke group privs before exec */
gid = getgid();
if (setregid(gid, gid) == -1) {
- err(1, "setregid: %s", strerror(errno));
- do_death(0);
+ err(1, "setregid");
}
execvp(PATH_PFCTL, pargv);
warn("exec of %s failed", PATH_PFCTL);