(g_get_any_init) [HAVE_GETPWUID_R && HAVE_GETPWUID_R_POSIX]:

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.
This commit is contained in:
Raja R Harinath 1999-01-24 03:32:55 +00:00
parent c9e92e124e
commit ff87d4a0b6
2 changed files with 2 additions and 6 deletions

View File

@ -453,9 +453,7 @@ g_get_any_init (void)
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)

View File

@ -453,9 +453,7 @@ g_get_any_init (void)
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)