View Single Post

   
  #5 (permalink)  
Old 01-16-2008, 07:15 PM
Dragan Cvetkovic
 
Posts: n/a
Default Re: getpwnam problem

jholly@cup.hp.com (Jim Hollenback) writes:

> ultra (ultraman@rogers_NOSPAM.com) wrote:
> : But the problem is I always pass the same user(exist in the system) to
> : getpwnam, sometimes it works but sometimes it fails with NULL. Any idea?
>
> what is the errno when it fails?


Apparently EINVAL. Here is the original message:

> I have a program that call getpwnam to get the user info, but sometimes
> the call returned NULL with errno EINVAL. I always pass the same user to the
> call. Anyone know what is the reason? I'm running HP11.00 and NIS.
>


--
Dragan Cvetkovic,

To be or not to be is true. G. Boole No it isn't. L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
Reply With Quote