mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
Handle failure of sysconf and pick a fixed size buffer. (Happens on Cygwin
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)
This commit is contained in:
parent
37fd6f79d4
commit
7ee298c980
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -1,3 +1,9 @@
|
||||
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)
|
||||
|
@ -822,16 +822,19 @@ g_get_any_init (void)
|
||||
{
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user