GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit ff87d4a0 authored by Raja R Harinath's avatar Raja R Harinath

(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.
parent c9e92e12
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment