Re: getpwnam("") && getgrnam("") returns an found entry but not NULL, is it a bug?
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephen Checkoway