[evolution-data-server] Bug 685725 - Handle "muser" attributes in %gconf.xml files



commit 3fd3ab7dc9933cdac150eccc5d4bc6f2a442b697
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 8 21:06:55 2012 -0400

    Bug 685725 - Handle "muser" attributes in %gconf.xml files
    
    The migration of account data from GConf to key files parses raw
    %gconf.xml files.  The parsing code neglected to handle "muser"
    attributes in <entry> tags, so that when an "muser" attribute was
    encountered, g_markup_collect_attributes() would throw an error an
    cause the whole GConf migration phase to be aborted.

 .../evolution-source-registry-migrate-sources.c    |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/services/evolution-source-registry/evolution-source-registry-migrate-sources.c b/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
index 3aee9d2..8b0f90f 100644
--- a/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
+++ b/services/evolution-source-registry/evolution-source-registry-migrate-sources.c
@@ -3204,6 +3204,9 @@ migrate_parse_gconf_xml_start_element (GMarkupParseContext *context,
 			"mtime", NULL,
 			G_MARKUP_COLLECT_STRING |
 			G_MARKUP_COLLECT_OPTIONAL,
+			"muser", NULL,
+			G_MARKUP_COLLECT_STRING |
+			G_MARKUP_COLLECT_OPTIONAL,
 			"type", NULL,
 			G_MARKUP_COLLECT_STRING |
 			G_MARKUP_COLLECT_OPTIONAL,



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