summaryrefslogtreecommitdiff
path: root/gutils.c
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1999-01-24 03:32:55 +0000
committerRaja R Harinath <harinath@src.gnome.org>1999-01-24 03:32:55 +0000
commitff87d4a0b6a46031663fccdfa0d8120813329578 (patch)
tree9c35e8b0c629cc2e64ea6ec13716aedf484bf382 /gutils.c
parentc9e92e124e97a12492f7968da91ece6cb9425ed0 (diff)
downloadglib-ff87d4a0b6a46031663fccdfa0d8120813329578.tar.gz
(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.
Diffstat (limited to 'gutils.c')
-rw-r--r--gutils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gutils.c b/gutils.c
index 36ab275c8..74dac8abe 100644
--- a/gutils.c
+++ b/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)