On Mon, May 6, 2013 at 6:31 PM, Ted Unangst <t...@tedunangst.com> wrote:

> 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.
>
>
Bad error checking regardless (and whether I'm qualified to comment aside),
it should have worked. What are the permissions for /etc/pwd.db?

Reply via email to