diff options
author | 2011-04-30 18:47:48 +0000 | |
---|---|---|
committer | 2011-04-30 18:47:48 +0000 | |
commit | fae15c9ca57e5be915356fe4e532150c6f40ac7e (patch) | |
tree | b3a838d733a2b069a973a0f51b033acafc9ee2e9 | |
parent | return >0 when file is not found. (from FreeBSD) (diff) | |
download | wireguard-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.c | 5 |
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; |