diff options
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/01_clear_servers.patch | 36 | ||||
-rw-r--r-- | debian/patches/glib-deprecated.diff | 43 | ||||
-rw-r--r-- | debian/patches/series | 2 |
3 files changed, 81 insertions, 0 deletions
diff --git a/debian/patches/01_clear_servers.patch b/debian/patches/01_clear_servers.patch new file mode 100644 index 0000000..187113d --- /dev/null +++ b/debian/patches/01_clear_servers.patch @@ -0,0 +1,36 @@ +Description: fix credentials disclosure via second login +Origin: upstream, http://bazaar.launchpad.net/~remote-login-service-team/remote-login-service/trunk/revision/77 +Bug: https://bugs.launchpad.net/ubuntu/quantal/+source/remote-login-service/+bug/1070896 + +=== modified file 'src/uccs-server.c' +--- old/src/uccs-server.c 2012-09-17 07:49:30 +0000 ++++ new/src/uccs-server.c 2012-10-24 14:35:36 +0000 +@@ -466,6 +466,10 @@ + static gboolean + parse_rds_array (UccsServer * server, JsonArray * array) + { ++ // Got a new set of servers, delete the old one ++ g_list_free_full(server->subservers, g_object_unref); ++ server->subservers = NULL; ++ + int i; + for (i = 0; i < json_array_get_length(array); i++) { + JsonNode * node = json_array_get_element(array, i); + +=== modified file 'tests/dbus-interface.c' +--- old/tests/dbus-interface.c 2012-09-17 07:49:30 +0000 ++++ new/tests/dbus-interface.c 2012-10-24 14:35:36 +0000 +@@ -184,9 +184,12 @@ + + GVariant * array = g_variant_get_child_value(retval, 2); + int i; ++ // Check all servers should be in the result are in the result + for (i = 0; slmockdata->servers[i].name != NULL; i++) { + g_assert(find_server(array, &slmockdata->servers[i])); + } ++ // Check there is no more servers in the result than we expected ++ g_assert(i == g_variant_n_children(array)); + g_variant_unref(array); + + g_variant_unref(retval); + diff --git a/debian/patches/glib-deprecated.diff b/debian/patches/glib-deprecated.diff new file mode 100644 index 0000000..c6e51e5 --- /dev/null +++ b/debian/patches/glib-deprecated.diff @@ -0,0 +1,43 @@ +Index: b/src/main.c +=================================================================== +--- a/src/main.c ++++ b/src/main.c +@@ -387,8 +387,10 @@ + { + GError * error = NULL; + ++#if !GLIB_CHECK_VERSION (2, 35, 1) + /* Init the GTypes */ + g_type_init(); ++#endif + + /* Setup i18n */ + setlocale (LC_ALL, ""); +Index: b/tests/dbus-interface.c +=================================================================== +--- a/tests/dbus-interface.c ++++ b/tests/dbus-interface.c +@@ -571,7 +571,9 @@ + gint + main (gint argc, gchar * argv[]) + { ++#if !GLIB_CHECK_VERSION (2, 35, 1) + g_type_init(); ++#endif + g_test_init(&argc, &argv, NULL); + + /* Test suites */ +Index: b/tests/server-test.c +=================================================================== +--- a/tests/server-test.c ++++ b/tests/server-test.c +@@ -270,7 +270,9 @@ + gint + main (gint argc, gchar * argv[]) + { ++#if !GLIB_CHECK_VERSION (2, 35, 1) + g_type_init(); ++#endif + g_test_init(&argc, &argv, NULL); + + /* Test suites */ diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..c1e82f9 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +01_clear_servers.patch +glib-deprecated.diff |