mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 12:12:10 +01:00
(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:
parent
c9e92e124e
commit
ff87d4a0b6
@ -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)
|
||||
|
4
gutils.c
4
gutils.c
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user