From 3255890540be63ecd6b56d28ec74652048b8e040 Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Sat, 16 May 2009 22:15:20 +0000 Subject: * Fix XDMCP support with gdm. Note: that for IPv4 support to work, one must rebuild gdm after disabling IPV6 support in the OPTIONS menu. * Set IPV6 support to DISABLED by default. * Add support for '&' in the gecos field. --- x11/gdm/files/patch-gui_simple-greeter_gdm-user.c | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 x11/gdm/files/patch-gui_simple-greeter_gdm-user.c (limited to 'x11/gdm/files/patch-gui_simple-greeter_gdm-user.c') diff --git a/x11/gdm/files/patch-gui_simple-greeter_gdm-user.c b/x11/gdm/files/patch-gui_simple-greeter_gdm-user.c new file mode 100644 index 000000000000..67ceb5a28d8f --- /dev/null +++ b/x11/gdm/files/patch-gui_simple-greeter_gdm-user.c @@ -0,0 +1,34 @@ +--- gui/simple-greeter/gdm-user.c.orig 2009-05-16 17:52:57.000000000 -0400 ++++ gsimple-greeter/dm-user.c 2009-05-16 18:08:08.000000000 -0400 +@@ -412,6 +412,7 @@ _gdm_user_update (GdmUser *u + /* Display Name */ + if (pwent->pw_gecos && pwent->pw_gecos[0] != '\0') { + gchar *first_comma; ++ gchar *ampersand; + + first_comma = strchr (pwent->pw_gecos, ','); + if (first_comma) { +@@ -425,6 +426,23 @@ _gdm_user_update (GdmUser *u + g_free (real_name); + real_name = NULL; + } ++ ++ while (real_name != NULL && (ampersand = strchr (real_name, '&')) != NULL) { ++ gchar *temp_real_name1; ++ gchar *temp_real_name2; ++ gchar *temp_name; ++ ++ temp_real_name1 = g_strndup (real_name, ++ (ampersand - real_name)); ++ temp_real_name2 = g_strdup (ampersand + 1); ++ temp_name = g_strdup (pwent->pw_name); ++ temp_name[0] = toupper (temp_name[0]); ++ g_free (real_name); ++ real_name = g_strdup_printf ("%s%s%s", temp_real_name1, temp_name, temp_real_name2); ++ g_free (temp_real_name1); ++ g_free (temp_real_name2); ++ g_free (temp_name); ++ } + } else { + real_name = NULL; + } -- cgit v1.2.3