* [gentoo-commits] gentoo-x86 commit in net-misc/networkmanager/files: networkmanager-0.9.8.9-fix-crash-on-wifi-rescan.patch
@ 2014-06-16 0:16 Maciej Mrozowski (reavertm)
0 siblings, 0 replies; only message in thread
From: Maciej Mrozowski (reavertm) @ 2014-06-16 0:16 UTC (permalink / raw
To: gentoo-commits
reavertm 14/06/16 00:16:37
Added:
networkmanager-0.9.8.9-fix-crash-on-wifi-rescan.patch
Log:
Apply upstream patch for crash on Wifi re-scan.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key B1E955DB)
Revision Changes Path
1.1 net-misc/networkmanager/files/networkmanager-0.9.8.9-fix-crash-on-wifi-rescan.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/files/networkmanager-0.9.8.9-fix-crash-on-wifi-rescan.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/networkmanager/files/networkmanager-0.9.8.9-fix-crash-on-wifi-rescan.patch?rev=1.1&content-type=text/plain
Index: networkmanager-0.9.8.9-fix-crash-on-wifi-rescan.patch
===================================================================
From 4099c9242b091604466dda081dc5f6909354258b Mon Sep 17 00:00:00 2001
From: M. Vefa Bicakci <m.v.b@runbox.com>
Date: Sat, 24 May 2014 23:37:00 +0000
Subject: core: fix crash during Wi-Fi rescan by emitting NM_DEVICE_AUTH_REQUEST signal correctly
Fixes regression introduced by commit da59b6d2229b85afbb9e14846931376340dc6030.
https://mail.gnome.org/archives/networkmanager-list/2014-May/msg00038.html
Backport-of: d9653484859c426f707b4759bc9882f7a57c1152
[thaller@redhat.com: original patch modified in nm-device-wifi.c to pass no
connection, as it is done on master]
Signed-off-by: Thomas Haller <thaller@redhat.com>
---
diff --git a/src/nm-device-wifi.c b/src/nm-device-wifi.c
index 8ca5278..052d68f 100644
--- a/src/nm-device-wifi.c
+++ b/src/nm-device-wifi.c
@@ -1563,6 +1563,7 @@ impl_device_request_scan (NMDeviceWifi *self,
g_signal_emit_by_name (device,
NM_DEVICE_AUTH_REQUEST,
context,
+ NULL,
NM_AUTH_PERMISSION_NETWORK_CONTROL,
TRUE,
request_scan_cb,
diff --git a/src/nm-manager.c b/src/nm-manager.c
index 9037e64..96bf3b4 100644
--- a/src/nm-manager.c
+++ b/src/nm-manager.c
@@ -1874,10 +1874,10 @@ device_auth_request_cb (NMDevice *device,
}
/* Ensure the subject has permissions for this connection */
- if (!nm_auth_uid_in_acl (connection,
- priv->session_monitor,
- sender_uid,
- &error_desc)) {
+ if (connection != NULL && !nm_auth_uid_in_acl (connection,
+ priv->session_monitor,
+ sender_uid,
+ &error_desc)) {
error = g_error_new_literal (NM_MANAGER_ERROR,
NM_MANAGER_ERROR_PERMISSION_DENIED,
error_desc);
--
cgit v0.9.0.2-2-gbebe
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-16 0:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-16 0:16 [gentoo-commits] gentoo-x86 commit in net-misc/networkmanager/files: networkmanager-0.9.8.9-fix-crash-on-wifi-rescan.patch Maciej Mrozowski (reavertm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox