Sigh, protect against pw->pw_gecos being "" as well. (#132317, Kaj-Michael

Fri Jan 23 22:49:52 2004  Matthias Clasen  <maclas@gmx.de>

	* glib/gutils.c (g_get_any_init): Sigh, protect against
	pw->pw_gecos being "" as well.  (#132317, Kaj-Michael Lang)
This commit is contained in:
Matthias Clasen 2004-01-23 21:49:21 +00:00 committed by Matthias Clasen
parent c1de91abbd
commit d73f478058
7 changed files with 31 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Fri Jan 23 22:49:52 2004 Matthias Clasen <maclas@gmx.de>
* 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 <tml@iki.fi>
* glib/glib.def: Add new functions.

View File

@ -1,3 +1,8 @@
Fri Jan 23 22:49:52 2004 Matthias Clasen <maclas@gmx.de>
* 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 <tml@iki.fi>
* glib/glib.def: Add new functions.

View File

@ -1,3 +1,8 @@
Fri Jan 23 22:49:52 2004 Matthias Clasen <maclas@gmx.de>
* 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 <tml@iki.fi>
* glib/glib.def: Add new functions.

View File

@ -1,3 +1,8 @@
Fri Jan 23 22:49:52 2004 Matthias Clasen <maclas@gmx.de>
* 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 <tml@iki.fi>
* glib/glib.def: Add new functions.

View File

@ -1,3 +1,8 @@
Fri Jan 23 22:49:52 2004 Matthias Clasen <maclas@gmx.de>
* 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 <tml@iki.fi>
* glib/glib.def: Add new functions.

View File

@ -1,3 +1,8 @@
Fri Jan 23 22:49:52 2004 Matthias Clasen <maclas@gmx.de>
* 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 <tml@iki.fi>
* glib/glib.def: Add new functions.

View File

@ -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;