> Georg > > Replying to my own post: on re-reading the specification, it looks clear > > "On success, *getpwnam_r*() and *getpwuid_r*() return zero, and set > /*result/ to /pwd/. If no matching password record was found, these > functions return 0 and store NULL in /*result/. In case of error, an > error number is returned, and NULL is stored in /*result/. " > > So it's the various implementations that may be deviating from this: > > "Experiments on various UNIX-like systems show that lots of different > values occur in this situation: 0, ENOENT, EBADF, ESRCH, EWOULDBLOCK, > EPERM and probably others." > > In the case reported it is returning EINVAL (invalid argument). What > version of glibc are you using? > > John >
we are running the glibc 2.24 from the official archlinux repository, last rebuild of glibc happened in early august this year and was no part of the update in question. georg