7014794: (file) lookupPrincipalByGroupName fails to find NIS group
Chris Hegarty
chris.hegarty at oracle.com
Tue Feb 1 02:56:29 PST 2011
The changes look fine.
I guess rather than defining RESTARTABLE_RETURN_PTR you could have added
the error/notFound value to RESTARTABLE_RETURN?
-Chris.
On 01/28/11 07:47 PM, Alan Bateman wrote:
>
> 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