diff options
author | Josiah Worcester | 2011-06-09 00:52:45 +0200 |
---|---|---|
committer | Karel Zak | 2011-06-14 13:58:39 +0200 |
commit | dcb43836be7a2451f929445f013c67254993bf52 (patch) | |
tree | 38b701b8c6d6c0a65784c53973125e53143f05f0 /login-utils/checktty.c | |
parent | fsck, checktty, flock: Use more portable includes. (diff) | |
download | kernel-qcow2-util-linux-dcb43836be7a2451f929445f013c67254993bf52.tar.gz kernel-qcow2-util-linux-dcb43836be7a2451f929445f013c67254993bf52.tar.xz kernel-qcow2-util-linux-dcb43836be7a2451f929445f013c67254993bf52.zip |
checktty: Use NGROUPS_MAX instead of NGROUPS
Signed-off-by: Josiah Worcester <josiahw@gmail.com>
Diffstat (limited to 'login-utils/checktty.c')
-rw-r--r-- | login-utils/checktty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/login-utils/checktty.c b/login-utils/checktty.c index 518b7015a..a8c5247c6 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 * |