hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7367) getgrouplist() in getGroup.c is not portable
Date Wed, 08 Jun 2011 20:48:58 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-7367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046209#comment-13046209

Allen Wittenauer commented on HADOOP-7367:

>From the bit of playing I've done, getgrouplist on OS X doesn't update ngroups to have
the total number of groups the user is in.  Since the first call uses 0, it returns 0, which
then dumps out of the rest of the loop.

So a fix here needs to take that into consideration.  (It may be worthwhile to just use sysconf(_POSIX_NGROUPS_MAX)
for the first call so that getgrouplist mostly works on OS X and others with different semantics
than the Linux version).

> getgrouplist() in getGroup.c is not portable
> --------------------------------------------
>                 Key: HADOOP-7367
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7367
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: native
>    Affects Versions: 0.22.0, 0.23.0
>         Environment: System V
>            Reporter: Allen Wittenauer
> getGroupIDList uses getgrouplist() to fetch the groups for a user.  Unfortunately, this
routine is a BSD-specific call and is not present in most System V-based operating systems.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message