From d73f4780587471e5c48fb4949b561b9f7c93e2ff Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 23 Jan 2004 21:49:21 +0000 Subject: [PATCH] Sigh, protect against pw->pw_gecos being "" as well. (#132317, Kaj-Michael Fri Jan 23 22:49:52 2004 Matthias Clasen * glib/gutils.c (g_get_any_init): Sigh, protect against pw->pw_gecos being "" as well. (#132317, Kaj-Michael Lang) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gutils.c | 2 +- 7 files changed, 31 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e15b9111e..68972fb31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jan 23 22:49:52 2004 Matthias Clasen + + * glib/gutils.c (g_get_any_init): Sigh, protect against + pw->pw_gecos being "" as well. (#132317, Kaj-Michael Lang) + 2004-01-23 Tor Lillqvist * glib/glib.def: Add new functions. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e15b9111e..68972fb31 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Fri Jan 23 22:49:52 2004 Matthias Clasen + + * glib/gutils.c (g_get_any_init): Sigh, protect against + pw->pw_gecos being "" as well. (#132317, Kaj-Michael Lang) + 2004-01-23 Tor Lillqvist * glib/glib.def: Add new functions. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index e15b9111e..68972fb31 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +Fri Jan 23 22:49:52 2004 Matthias Clasen + + * glib/gutils.c (g_get_any_init): Sigh, protect against + pw->pw_gecos being "" as well. (#132317, Kaj-Michael Lang) + 2004-01-23 Tor Lillqvist * glib/glib.def: Add new functions. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index e15b9111e..68972fb31 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Fri Jan 23 22:49:52 2004 Matthias Clasen + + * glib/gutils.c (g_get_any_init): Sigh, protect against + pw->pw_gecos being "" as well. (#132317, Kaj-Michael Lang) + 2004-01-23 Tor Lillqvist * glib/glib.def: Add new functions. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e15b9111e..68972fb31 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Fri Jan 23 22:49:52 2004 Matthias Clasen + + * glib/gutils.c (g_get_any_init): Sigh, protect against + pw->pw_gecos being "" as well. (#132317, Kaj-Michael Lang) + 2004-01-23 Tor Lillqvist * glib/glib.def: Add new functions. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e15b9111e..68972fb31 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Fri Jan 23 22:49:52 2004 Matthias Clasen + + * glib/gutils.c (g_get_any_init): Sigh, protect against + pw->pw_gecos being "" as well. (#132317, Kaj-Michael Lang) + 2004-01-23 Tor Lillqvist * glib/glib.def: Add new functions. diff --git a/glib/gutils.c b/glib/gutils.c index 290512db1..82227d39a 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -959,7 +959,7 @@ g_get_any_init (void) { g_user_name = g_strdup (pw->pw_name); - if (pw->pw_gecos) + if (pw->pw_gecos && *pw->pw_gecos != '\0') { gchar **gecos_fields; gchar **name_parts;