gdm r5614 - in branches/gnome-2-20: . daemon



Author: bcameron
Date: Thu Jan 10 21:53:02 2008
New Revision: 5614
URL: http://svn.gnome.org/viewvc/gdm?rev=5614&view=rev

Log:
2008-01-10 Brian Cameron <brian cameron sun com>

        * daemon/gdm-daemon-config.c: Fix the setting of the custom command
          NOTIFY key to avoid crashing problem when changing the label values
          of a custom command in gdmsetup.


Modified:
   branches/gnome-2-20/ChangeLog
   branches/gnome-2-20/daemon/gdm-daemon-config.c

Modified: branches/gnome-2-20/daemon/gdm-daemon-config.c
==============================================================================
--- branches/gnome-2-20/daemon/gdm-daemon-config.c	(original)
+++ branches/gnome-2-20/daemon/gdm-daemon-config.c	Thu Jan 10 21:53:02 2008
@@ -846,10 +846,9 @@
 	else if (is_key (keystring, GDM_KEY_TIMED_LOGIN))
 		nkey = g_strdup (GDM_NOTIFY_TIMED_LOGIN);
 	else if (strcmp (group, GDM_CONFIG_GROUP_CUSTOM_CMD) == 0 &&
-		 g_str_has_prefix (key, "CustomCommand") &&
-		 strlen (key) == 14) {
+		 g_str_has_prefix (key, "CustomCommand")) {
 		/* this should match 'CustomCommandN' */
-		nkey = g_strdup (key);
+		nkey = g_strdup (GDM_NOTIFY_CUSTOM_CMD_TEMPLATE);
 	}
 	g_free (keystring);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]