NetworkManager/libnm
Benjamin Berg 55d749f940 Add calls to g_simple_async_result_set_check_cancellable
If an operation is cancelled through the GCancellable, then the idiom is
that the operation is always cancelled, even if it has finished
successfully. To ensure this is the case, add calls to
g_simple_async_result_set_check_cancellable everywhere.

Without this, e.g. gnome-control-center will crash when switching away
from the power panel quickly, as the NMClient creation finishes
asynchronously and g-c-c assume that G_IO_ERROR_CANCELLED is returned to
ensure it doesn't access the now invalid user_data parameter.

https://bugzilla.gnome.org/show_bug.cgi?id=794088
(cherry picked from commit 26c215e22d)
(cherry picked from commit e1b99d9201)
(cherry picked from commit 2e62853509)
(cherry picked from commit 4bcb4c4ef2)
2018-03-08 15:42:55 +01:00
..
tests libnm/tests: increase timeout in nm-client test 2016-11-24 14:18:47 +01:00
generate-plugin-docs.pl trivial: fix a comment typo in generate-plugin-docs.pl 2014-11-19 17:54:03 +01:00
generate-setting-docs.py build: fix compilation with Python3 2017-01-19 14:21:47 +01:00
libnm.pc.in libnm,pkg-config: provide a variable with VPN service directory 2015-08-19 15:13:11 +02:00
libnm.ver all: make MAC address randomization algorithm configurable 2016-06-30 08:32:50 +02:00
Makefile.am build: rename $(LIBDL) to $(DL_LIBS) and modify detection 2016-08-15 17:23:41 +02:00
NetworkManager.h libnm: include "nm-vpn-service-plugin.h" in "NetworkManager.h" 2016-01-27 17:20:09 +01:00
nm-access-point.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-access-point.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-active-connection.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-active-connection.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-client.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-client.h auth: check when setting statistics refresh rate 2016-08-17 16:08:20 +02:00
nm-dbus-helpers.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-dbus-helpers.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-device-adsl.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-adsl.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-bond.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-bond.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-bridge.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-bridge.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-bt.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-bt.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-ethernet.c device: enable MAC address check on virtual devices 2016-07-22 19:36:24 +02:00
nm-device-ethernet.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-generic.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-generic.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-infiniband.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-infiniband.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-ip-tunnel.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-ip-tunnel.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-macvlan.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-macvlan.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-modem.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-modem.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-olpc-mesh.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-olpc-mesh.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-private.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-device-team.c team: expose current device configuration through D-Bus and nmcli 2016-05-26 09:16:46 +02:00
nm-device-team.h team: expose current device configuration through D-Bus and nmcli 2016-05-26 09:16:46 +02:00
nm-device-tun.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-tun.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-vlan.c libnm: avoid possibly NULL address for NMDeviceVlan calling nm_utils_hwaddr_matches() 2016-10-24 10:33:21 +02:00
nm-device-vlan.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-vxlan.c libnm: fix memleak in NMDeviceVxlan 2016-10-24 10:33:13 +02:00
nm-device-vxlan.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-wifi.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-device-wifi.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device-wimax.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-device-wimax.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-device.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-device.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-dhcp-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dhcp-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-dhcp4-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dhcp4-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-dhcp6-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dhcp6-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-ip-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-ip-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-ip4-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-ip4-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-ip6-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-ip6-config.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-manager.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-manager.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-object-cache.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-object-cache.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-object-private.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-object.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-object.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-remote-connection-private.h libnm: add libnm/libnm-core (part 1) 2014-08-01 14:34:04 -04:00
nm-remote-connection.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-remote-connection.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-remote-settings.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-remote-settings.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-secret-agent-old.c Add calls to g_simple_async_result_set_check_cancellable 2018-03-08 15:42:55 +01:00
nm-secret-agent-old.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-types.h libnm: add NMDeviceVxlan 2015-12-09 16:36:46 +01:00
nm-vpn-connection.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-vpn-connection.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-vpn-editor.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-vpn-editor.h libnm: use <> to include in public header 2016-04-13 19:20:52 +02:00
nm-vpn-plugin-old.c libnm: accept invalid connections in NMVpnServicePlugin 2016-03-26 12:10:54 +01:00
nm-vpn-plugin-old.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-vpn-service-plugin.c libnm/vpn-service-plugin: transition to STOPPED state from INIT too 2016-11-24 14:18:47 +01:00
nm-vpn-service-plugin.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00
nm-wimax-nsp.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-wimax-nsp.h docs: libnm: add doc comment to types 2016-05-05 17:01:57 +02:00