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] [Updated] (HADOOP-7367) getgrouplist() in getGroup.c is not portable
Date Thu, 09 Jun 2011 01:01:04 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-7367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Allen Wittenauer updated HADOOP-7367:
-------------------------------------

    Status: Patch Available  (was: Open)

Several things about this patch:

* A check has been added to configure to look for a getgrouplist routine
* If it is found, we use a getgrouplist routine that tries to do it all in one pass, based
upon allocating POSIX_NGROUPS_MAX groups (up to 32) for the initial buffer.  If the user has
more than 32, we depend upon getgrouplist properly returning the number of groups for the
user.  (So this will only match the first 32 on Darwin)
* If getgrouplist isn't there, we run through the entire groups db, looking for entries.

Please note that at least Solaris requires _POSIX_PTHREAD_SEMANTICS defined for the 5 param
version of get*_r.  I'll cover that in a separate patch.

> 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 (Solaris, HP-UX, AIX?)
> Mac OS X
>            Reporter: Allen Wittenauer
>         Attachments: hadoop-7367.patch
>
>
> 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

Mime
View raw message