diff options
author | Raja R Harinath <harinath@src.gnome.org> | 1999-01-24 03:32:55 +0000 |
---|---|---|
committer | Raja R Harinath <harinath@src.gnome.org> | 1999-01-24 03:32:55 +0000 |
commit | ff87d4a0b6a46031663fccdfa0d8120813329578 (patch) | |
tree | 9c35e8b0c629cc2e64ea6ec13716aedf484bf382 /gutils.c | |
parent | c9e92e124e97a12492f7968da91ece6cb9425ed0 (diff) | |
download | glib-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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) |