From dcb43836be7a2451f929445f013c67254993bf52 Mon Sep 17 00:00:00 2001 From: Josiah Worcester Date: Wed, 8 Jun 2011 16:52:45 -0600 Subject: [PATCH] checktty: Use NGROUPS_MAX instead of NGROUPS Signed-off-by: Josiah Worcester --- login-utils/checktty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/login-utils/checktty.c b/login-utils/checktty.c index 518b7015ab..a8c5247c67 100644 --- a/login-utils/checktty.c +++ b/login-utils/checktty.c @@ -42,7 +42,7 @@ #define TTY_MAJOR 4 #endif -static gid_t mygroups[NGROUPS]; +static gid_t mygroups[NGROUPS_MAX]; static int num_groups; #define NAMELEN 128 @@ -83,7 +83,7 @@ am_in_group(char *group) static void find_groups(gid_t defgrp, const char *user) { - num_groups = getgroups(NGROUPS, mygroups); + num_groups = getgroups(NGROUPS_MAX, mygroups); } static struct ttyclass * -- 2.47.3