mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-23 22:16:16 +01:00
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:
parent
c1de91abbd
commit
d73f478058
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user