glib: g_get_any_init() bug fix
- From: Elliot Lee <sopwith redhat com>
- To: gtk-devel-list redhat com
- Subject: glib: g_get_any_init() bug fix
- Date: Wed, 20 Jan 1999 15:36:10 -0500 (EST)
Here's a patch for you enthusiastic patch appliers that accounts for the
fact that the POSIX getpwuid_r does not return errno, but merely an error
indicator.
--- gutils.c 1999/01/20 15:06:46 1.25
+++ gutils.c 1999/01/20 20:33:28
@@ -452,8 +452,8 @@
pw = getpwuid_r (getuid (), &pwd, buffer, bufsize);
if (pw)
break;
- error = errno;
# endif /* HAVE_GETPWUID_R_POSIX */
+ error = errno;
if (error != ERANGE)
g_error( "Could not read account information: %s",
g_strerror (error));
-- Elliot
"In film you will find four basic story lines. Man versus man, man
versus nature, nature versus nature, and dog versus vampire."
- Steven Spielberg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]