This problem still exists, althrough now the limit is 65535 (run getconf
NGROUPS_MAX), and it takes "id" 30 minutes to run.

I propose the following behavior.

  When called without a username argument, and
    getgroups() >= sysconf(_SC_NGROUPS_MAX),
  or when called as id <user>, use a loop counter; test if this value
  ever exceeds that of sysconf(_SC_NGROUPS_MAX)

    error(0,0, "User '%s' may be a member of more"\
    "groups than the system allows\n", pw->pw_name);

Justin
-- 
http://bugs.debian.org/175994
'id' and 'id user' inconsistent for > 32 (NGROUPS_MAX define) user groups


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to