All pastes #1798410 Raw Edit

teuf

public text v1 · immutable
#1798410 ·published 2010-02-16 14:25 UTC
rendered paste body
diff --git a/src/itdb_sqlite.c b/src/itdb_sqlite.cindex d7626bf..fd45650 100644--- a/src/itdb_sqlite.c+++ b/src/itdb_sqlite.c@@ -1506,7 +1506,11 @@ static void run_post_process_commands(Itdb_iTunesDB *itdb, const char *outpath, 	idevice_free(phone);  	if (lockdownerr == LOCKDOWN_E_SUCCESS) {+	    gchar *xml;+	    gsize xml_len; 	    ppc_dict = plist_node;+	    plist_to_xml(plist_node, &xml, &xml_length);+	    g_file_set_contents("/tmp/plist1.xml", xml, length, NULL); 	} else { 	    if (plist_node) { 		plist_free(plist_node);@@ -1579,6 +1583,10 @@ static void run_post_process_commands(Itdb_iTunesDB *itdb, const char *outpath, 		iter = NULL; 	    } 	    if (user_ver_cmds) {+		gchar *xml;+		gsize xml_len;+		plist_to_xml(user_ver_cmds, &xml, &xml_length);+		g_file_set_contents("/tmp/plist2.xml", xml, length, NULL); 		/* found numbered key (usually '8', for Nano 5G it is '9') */ 		curnode = user_ver_cmds; 		/* now get the commands array */