summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-02 02:12:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-04-02 02:12:25 +0000
commitd37e1b99bd73750c6235de48298189feef7b353a (patch)
treed0c7cb5242cdacbd4ec33403254eb37622856147 /usr.sbin
parent5a5a740330d1302d059ffa53f02119315088cc06 (diff)
use setresgid()
ok guenther millert
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/authpf/authpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index d036bfa850c..0d294f1cef1 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.119 2013/04/02 06:04:50 guenther Exp $ */
+/* $OpenBSD: authpf.c,v 1.120 2014/04/02 02:12:24 deraadt Exp $ */
/*
* Copyright (C) 1998 - 2007 Bob Beck (beck@openbsd.org).
@@ -805,7 +805,7 @@ change_filter(int add, const char *luser, const char *ipsrc)
case 0:
/* revoke group privs before exec */
gid = getgid();
- if (setregid(gid, gid) == -1) {
+ if (setresgid(gid, gid, gid) == -1) {
err(1, "setregid");
}
execvp(PATH_PFCTL, pargv);