7014794: (file) lookupPrincipalByGroupName fails to find NIS group

Alan Bateman Alan.Bateman at oracle.com
Fri Jan 28 11:47:06 PST 2011


The lookupPrincipalByGroupName method is currently failing with NIS 
groups that have a lot of members. There is also an issue going the 
other way (gid -> group) where the GroupPrincipal's getName or toString 
method returns the gid rather than the group name. The problem is that 
the implementation uses a buffer of size SC_GETGR_R_SIZE_MAX which is 
not sufficient for large groups. The fix bumps up the buffer size until 
it is sufficient for the size of the group entry. The webrev with the 
changes is here:
   http://cr.openjdk.java.net/~alanb/7014794/webrev/

Thanks,
Alan.


More information about the nio-dev mailing list