• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: getpwnam("") && getgrnam("") returns an found entry but not NULL, is it a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >getpwnam("") && getgrnam("") returns an found entry but not NULL, is it a bug? (From: Reeze Xia <email@hidden>)

  • Prev by Date: getpwnam("") && getgrnam("") returns an found entry but not NULL, is it a bug?
  • Next by Date: getpwnam("") && getgrnam("") returns an found entry but not NULL on Mountain Lion
  • Previous by thread: getpwnam("") && getgrnam("") returns an found entry but not NULL, is it a bug?
  • Next by thread: getpwnam("") && getgrnam("") returns an found entry but not NULL on Mountain Lion
  • Index(es):
    • Date
    • Thread