On Mon, May 06, 2013 at 22:06, Friedrich Locke wrote:

> e = errno, errno = 0;
> p = getpwuid(0);
> if (errno) {
> fprintf(stdout, "errno is: %u\n", errno);
>
> sioux@lion$ ./pw
> errno is: 13
> sioux@lion$
> 
> 
> Any ideia why openbsd implementation of getpwuid returns error ?

That is not how the man page says you check for getpwuid errors.

Reply via email to