- Feb 14, 2021
-
-
Simon McVittie authored
-
Simon McVittie authored
-
Simon McVittie authored
Several of the installed-tests won't be built unless dbus-daemon is available.
-
Simon McVittie authored
We don't run the majority of the tests when we're only building the documentation.
-
Simon McVittie authored
-
Simon McVittie authored
-
Simon McVittie authored
-
Simon McVittie authored
-
Simon McVittie authored
Update to upstream version '2.67.3+git20210214' with Debian dir e9dc865c16f84aa270b392587efb1ad650a60ed9
-
Simon McVittie authored
-
Simon McVittie authored
- Feb 13, 2021
-
-
Balázs Úr authored
-
Anders Jonsson authored
-
Daniel Șerbănescu authored
-
- Feb 12, 2021
-
-
Fran Dieguez authored
-
Yuri Chornoivan authored
-
Simon McVittie authored
Resolve "Add G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER flag" Closes #1804 See merge request GNOME/glib!1814
-
- Feb 11, 2021
-
-
Philip Withnall authored
It’s not feasible to test that the require-same-user flag can cause authentication to fail, as that would require the build environment to have two users available. We can, however, test that it passes when authenticating a client and server running under the same user account. I have manually tested that the new flag works, by running the following as user A: ``` `$prefix/gdbus-daemon --print-env &` gdbus call --session --dest org.freedesktop.DBus --object-path /org/freedesktop/DBus --method org.freedesktop.DBus.ListNames ``` And then running the `gdbus call` command again as user B (with the same value for `DBUS_SESSION_BUS_ADDRESS` in the environment), which produces: ``` Error connecting: Unexpected lack of content trying to read a line ``` (an authentication rejection) Commenting out the use of `G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER` from `gdbusdaemon.c`, the `gdbus call` command succeeds for both users. Signed-off-by:
Philip Withnall <pwithnall@endlessos.org>
-
Philip Withnall authored
This doesn’t change the `GDBusDaemon` behaviour, but does simplify the code a little. Signed-off-by:
Philip Withnall <pwithnall@endlessos.org> Helps: #1804
-
Philip Withnall authored
This eliminates a common use case for the `GDBusAuthObserver::authorize-authenticated-peer` signal, which is often implemented incorrectly by people. Suggested by Simon McVittie. Signed-off-by:
Philip Withnall <pwithnall@endlessos.org> Fixes: #1804
-
Philip Withnall authored
Signed-off-by:
Philip Withnall <pwithnall@endlessos.org>
-
Philip Withnall authored
gdbus: Reject attempts to set future connection or server flags See merge request GNOME/glib!1934
-
Philip Withnall authored
gbytearray: Do not accept too large byte arrays See merge request GNOME/glib!1942
-
Krzesimir Nowak authored
GByteArray uses guint for storing the length of the byte array, but it also has a constructor (g_byte_array_new_take) that takes length as a gsize. gsize may be larger than guint (64 bits for gsize vs 32 bits for guint). It is possible to call the function with a value greater than G_MAXUINT, which will result in silent length truncation. This may happen as a result of unreffing GBytes into GByteArray, so rather be loud about it. (Test case tweaked by Philip Withnall.)
-
Daniel Mustieles authored
-
Sebastian Dröge authored
gkeyfilesettingsbackend: Fix basename handling when group is unset See merge request GNOME/glib!1941
-
- Feb 10, 2021
-
-
Philip Withnall authored
This tests the two recent commits. Signed-off-by:
Philip Withnall <pwithnall@endlessos.org>
-
Philip Withnall authored
These should never have been allowed; they will result in precondition failures from the `GKeyFile` later on in the code. A test will be added for this shortly. Signed-off-by:
Philip Withnall <pwithnall@endlessos.org>
-
Philip Withnall authored
Fix an effective regression in commit 7781a9cb, which happens when `convert_path()` is called with a `key` which contains no slashes. In that case, the `key` is entirely the `basename`. Prior to commit 7781a9cb, the code worked through a fluke of `i == -1` cancelling out with the various additions in the `g_memdup()` call, and effectively resulting in `g_strdup (key)`. Spotted by Guido Berhoerster. Signed-off-by:
Philip Withnall <pwithnall@endlessos.org>
-
Philip Withnall authored
Fix more warnings See merge request GNOME/glib!1938
-
Emmanuel Fleury authored
gio/glib-compile-resources.c: In function ‘parse_resource_file’: gio/glib-compile-resources.c:553:3: error: missing initializer for field ‘passthrough’ of ‘GMarkupParser’ {aka ‘struct _GMarkupParser’} 553 | GMarkupParser parser = { start_element, end_element, text }; | ^~~~~~~~~~~~~
-
Emmanuel Fleury authored
gio/gio-tool-tree.c: In function ‘do_tree’: gio/gio-tool-tree.c:124:22: error: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ 124 | for (n = 0; n < level; n++) | ^ gio/gio-tool-tree.c:197:21: error: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ 197 | for (n = 0; n < level; n++) | ^
-
Emmanuel Fleury authored
gio/gio-tool-monitor.c:48:3: error: missing initializer for field ‘description’ of ‘GOptionEntry’ {aka ‘const struct _GOptionEntry’} 48 | { G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &watch_default }, | ^
-
Emmanuel Fleury authored
gio/gio-tool.c: In function ‘attribute_flags_to_string’: gio/gio-tool.c:171:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 171 | for (i = 0; i < G_N_ELEMENTS (flag_descr); i++) | ^
-
Emmanuel Fleury authored
gio/glib-compile-schemas.c: In function ‘parse_gschema_files’: gio/glib-compile-schemas.c:1773:3: error: missing initializer for field ‘passthrough’ of ‘GMarkupParser’ {aka ‘struct _GMarkupParser’} 1773 | GMarkupParser parser = { start_element, end_element, text }; | ^~~~~~~~~~~~~ gio/glib-compile-schemas.c: In function ‘main’: gio/glib-compile-schemas.c:2176:5: error: missing initializer for field ‘arg_description’ of ‘GOptionEntry’ {aka ‘struct _GOptionEntry’} 2176 | { "allow-any-name", 0, 0, G_OPTION_ARG_NONE, &allow_any_name, N_("Do not enforce key name restrictions") }, | ^
-
Emmanuel Fleury authored
gio/glib-compile-schemas.c: In function ‘key_state_set_range’: gio/glib-compile-schemas.c:376:17: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 376 | for (i = 0; i < G_N_ELEMENTS (table); i++) | ^ gio/glib-compile-schemas.c: In function ‘key_state_serialise’: gio/glib-compile-schemas.c:714:29: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘long unsigned int’ 714 | for (i = 0; i < size / sizeof (guint32); i++) | ^
-
Emmanuel Fleury authored
gio/gsettings-mapping.c: In function ‘g_settings_set_mapping_int’: gio/gsettings-mapping.c:65:23: error: comparison of integer expressions of different signedness: ‘gint64’ {aka ‘long int’} and ‘long unsigned int’ 65 | if (0 <= l && l <= G_MAXUINT64) | ^~ gio/gsettings-mapping.c: In function ‘g_settings_set_mapping_float’: gio/gsettings-mapping.c:120:23: error: comparison of integer expressions of different signedness: ‘gint64’ {aka ‘long int’} and ‘long unsigned int’ 120 | if (0 <= l && l <= G_MAXUINT64) | ^~ gio/gsettings-mapping.c: In function ‘g_settings_get_mapping_int’: gio/gsettings-mapping.c:224:27: error: comparison of integer expressions of different signedness: ‘gint64’ {aka ‘long int’} and ‘long unsigned int’ 224 | return (0 <= l && l <= G_MAXUINT64); | ^~ gio/gsettings-mapping.c: In function ‘g_settings_get_mapping_float’: gio/gsettings-mapping.c:269:27: error: comparison of integer expressions of different signedness: ‘gint64’ {aka ‘long int’} and ‘long unsigned int’ 269 | return (0 <= l && l <= G_MAXUINT64); | ^~
-
Emmanuel Fleury authored
fuzzing/fuzz_dbus_message.c:3:1: error: ‘static’ is not at beginning of declaration 3 | const static GDBusCapabilityFlags flags = G_DBUS_CAPABILITY_FLAGS_UNIX_FD_PASSING; | ^~~~~
-