summaryrefslogtreecommitdiffstats
path: root/x11/gdm/files/patch-gui_simple-greeter_gdm-user.c
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-06-06 04:47:57 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2010-06-06 04:47:57 +0800
commitccc8fdb702b4ead90f43a9e234d81a9ffe3c3df9 (patch)
tree7b452f6d5f4cf0cb5ec074cdb5f1b35b7e824c22 /x11/gdm/files/patch-gui_simple-greeter_gdm-user.c
parent9b15d70338eee66a834440fbafa7bded005c9cac (diff)
downloadmarcuscom-ports-ccc8fdb702b4ead90f43a9e234d81a9ffe3c3df9.tar
marcuscom-ports-ccc8fdb702b4ead90f43a9e234d81a9ffe3c3df9.tar.gz
marcuscom-ports-ccc8fdb702b4ead90f43a9e234d81a9ffe3c3df9.tar.bz2
marcuscom-ports-ccc8fdb702b4ead90f43a9e234d81a9ffe3c3df9.tar.lz
marcuscom-ports-ccc8fdb702b4ead90f43a9e234d81a9ffe3c3df9.tar.xz
marcuscom-ports-ccc8fdb702b4ead90f43a9e234d81a9ffe3c3df9.tar.zst
marcuscom-ports-ccc8fdb702b4ead90f43a9e234d81a9ffe3c3df9.zip
Update to 2.31.1.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14179 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/gdm/files/patch-gui_simple-greeter_gdm-user.c')
-rw-r--r--x11/gdm/files/patch-gui_simple-greeter_gdm-user.c34
1 files changed, 34 insertions, 0 deletions
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 000000000..e5fb649c6
--- /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-12-16 17:52:36.000000000 -0500
++++ gui/simple-greeter/gdm-user.c 2009-12-18 21:43:38.000000000 -0500
+@@ -425,6 +425,7 @@ _gdm_user_update (GdmUser *u
+ /* Display Name */
+ if (pwent->pw_gecos && pwent->pw_gecos[0] != '\0') {
+ gchar *first_comma = NULL;
++ gchar *ampersand;
+ gchar *valid_utf8_name = NULL;
+
+ if (g_utf8_validate (pwent->pw_gecos, -1, NULL)) {
+@@ -449,6 +450,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;
+ }