IOException from sun.nio.fs.UnixUserPrincipals.lookupName

Neil Richards neil.richards at ngmr.net
Wed Nov 23 05:46:32 PST 2011


On Wed, 2011-11-23 at 12:26 +0000, Alan Bateman wrote:
> On 21/11/2011 09:50, Jonathan Lu wrote: 
> > Yes, this problem was originally found on AIX platform and I just
> > tested getgrnam_r(), it failed with the same errno as getpwnam_r(),
> > so I think if there's an adjustment, getgrnam0 should be included
> > too.
> As I said, I don't see a problem extending the check to include ESRCH.
> It's one of these holes in the standards. Will you send the patch for
> both calls so that we can review it? Also is Neil going to push it or
> do you need me to do it? I've created a bug for it:
> 
> 7115070: (fs) lookupPrincipalByName/lookupPrincipalByGroupName should
> treat ESRCH as not found
> 
> -Alan.

Hi all,
I'm happy to push it once Jonathan's suggested change is agreed (once
he's posted the patch).

Regards, Neil

-- 
Unless stated above:
IBM email: neil_richards at uk.ibm.com
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



More information about the nio-dev mailing list