+Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gutils.c (g_get_any_init): Handle failure of
+ sysconf and pick a fixed size buffer. (Happens on Cygwin
+ #60242)
+
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
+Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gutils.c (g_get_any_init): Handle failure of
+ sysconf and pick a fixed size buffer. (Happens on Cygwin
+ #60242)
+
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
+Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gutils.c (g_get_any_init): Handle failure of
+ sysconf and pick a fixed size buffer. (Happens on Cygwin
+ #60242)
+
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
+Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gutils.c (g_get_any_init): Handle failure of
+ sysconf and pick a fixed size buffer. (Happens on Cygwin
+ #60242)
+
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
+Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gutils.c (g_get_any_init): Handle failure of
+ sysconf and pick a fixed size buffer. (Happens on Cygwin
+ #60242)
+
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
+Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gutils.c (g_get_any_init): Handle failure of
+ sysconf and pick a fixed size buffer. (Happens on Cygwin
+ #60242)
+
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
+Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gutils.c (g_get_any_init): Handle failure of
+ sysconf and pick a fixed size buffer. (Happens on Cygwin
+ #60242)
+
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
+Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gutils.c (g_get_any_init): Handle failure of
+ sysconf and pick a fixed size buffer. (Happens on Cygwin
+ #60242)
+
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
{
struct passwd *pw = NULL;
gpointer buffer = NULL;
+ gint error;
# if defined (HAVE_POSIX_GETPWUID_R) || defined (HAVE_NONPOSIX_GETPWUID_R)
struct passwd pwd;
# ifdef _SC_GETPW_R_SIZE_MAX
/* This reurns the maximum length */
- glong bufsize = sysconf (_SC_GETPW_R_SIZE_MAX);
+ glong bufsize = sysconf (_SC_GETPW_R_SIZE_MAX);
+
+ if (bufsize < 0)
+ bufsize = 64;
# else /* _SC_GETPW_R_SIZE_MAX */
glong bufsize = 64;
# endif /* _SC_GETPW_R_SIZE_MAX */
- gint error;
do
{