Re: getpwnam("") && getgrnam("") returns an found entry but not NULL, is it a bug?
Re: getpwnam("") && getgrnam("") returns an found entry but not NULL, is it a bug?
- Subject: Re: getpwnam("") && getgrnam("") returns an found entry but not NULL, is it a bug?
- From: Stephen Checkoway <email@hidden>
- Date: Fri, 10 Aug 2012 00:55:46 -0700
On Aug 9, 2012, at 11:40 PM, Reeze Xia wrote:
> I don't know if this is the right mailing list to post, if not please forgive me plz :)
I think darwin-dev would be more appropriate.
> The below is reproducible code.
> #include <stdio.h>
> #include <sys/types.h>
> #include <pwd.h>
> #include <unistd.h>
> #include <stdlib.h>
I think this should be
#include <stdio.h>
#include <grp.h>
> Expected Results:
> Right
>
> Actual Results:
> Found empty group
I can't confirm your results on ML as I haven't "upgraded" but it certainly seems to do the right thing on Snow Leopard.
--
Stephen Checkoway
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden