summaryrefslogtreecommitdiffstats
path: root/usr.sbin/jail
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2004-10-02 11:40:48 +0000
committerstefanf <stefanf@FreeBSD.org>2004-10-02 11:40:48 +0000
commitd00a4eaaead4ab4b18854f36695ffdd9a4a08df8 (patch)
treeb1445db5fc9310748356059b2012b0bbf474cc63 /usr.sbin/jail
parent19377ec887db0bddf61b00fed90f57dfcb29ee6a (diff)
downloadFreeBSD-src-d00a4eaaead4ab4b18854f36695ffdd9a4a08df8.zip
FreeBSD-src-d00a4eaaead4ab4b18854f36695ffdd9a4a08df8.tar.gz
Pass an array of gid_t rather than an array of int to getgroups().
PR: 56646
Diffstat (limited to 'usr.sbin/jail')
-rw-r--r--usr.sbin/jail/jail.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c
index 0f379a7..e467eb2 100644
--- a/usr.sbin/jail/jail.c
+++ b/usr.sbin/jail/jail.c
@@ -53,7 +53,8 @@ main(int argc, char **argv)
struct jail j;
struct passwd *pwd;
struct in_addr in;
- int ch, groups[NGROUPS], i, iflag, lflag, ngroups, uflag, Uflag;
+ gid_t groups[NGROUPS];
+ int ch, i, iflag, lflag, ngroups, uflag, Uflag;
char path[PATH_MAX], *username;
static char *cleanenv;
const char *shell, *p;
OpenPOWER on IntegriCloud