Aargh.
`getpwuid_r' error return: GNU libc.info says to look at `errno'.
Solaris 2.5 man page says error code (eg ERANGE) is returned.
error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
if (!error)
goto pw_out;
- /* error = errno; According to the Solaris man page,
- this is not necessary. */
-
+ error = errno;
# else /* !HAVE_GETPWUID_R_POSIX */
pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
if (pw == NULL)
error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw);
if (!error)
goto pw_out;
- /* error = errno; According to the Solaris man page,
- this is not necessary. */
-
+ error = errno;
# else /* !HAVE_GETPWUID_R_POSIX */
pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
if (pw == NULL)