summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-04-30 18:47:48 +0000
committernicm <nicm@openbsd.org>2011-04-30 18:47:48 +0000
commitfae15c9ca57e5be915356fe4e532150c6f40ac7e (patch)
treeb3a838d733a2b069a973a0f51b033acafc9ee2e9
parentreturn >0 when file is not found. (from FreeBSD) (diff)
downloadwireguard-openbsd-fae15c9ca57e5be915356fe4e532150c6f40ac7e.tar.xz
wireguard-openbsd-fae15c9ca57e5be915356fe4e532150c6f40ac7e.zip
Use gid_t for setgroups(), from Michael W Bombardieri. ok yasuoka
-rw-r--r--usr.sbin/pppoe/pppoe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pppoe/pppoe.c b/usr.sbin/pppoe/pppoe.c
index 5226535e3bf..01eff2a4506 100644
--- a/usr.sbin/pppoe/pppoe.c
+++ b/usr.sbin/pppoe/pppoe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pppoe.c,v 1.17 2008/06/24 08:21:46 sobrado Exp $ */
+/* $OpenBSD: pppoe.c,v 1.18 2011/04/30 18:47:48 nicm Exp $ */
/*
* Copyright (c) 2000 Network Security Technologies, Inc. http://www.netsec.net
@@ -504,7 +504,8 @@ signal_init(void)
void
drop_privs(struct passwd *pw, int server_mode)
{
- int groups[2], ng = 1;
+ int ng = 1;
+ gid_t groups[2];
struct group *gr;
groups[0] = pw->pw_gid;