rpms/wpa_supplicant/devel wpa_supplicant-0.6.7-no-unrequested-reply.patch, NONE, 1.1 wpa_supplicant.spec, 1.53, 1.54

Colin Walters walters at fedoraproject.org
Wed Feb 25 18:18:26 UTC 2009


Author: walters

Update of /cvs/pkgs/rpms/wpa_supplicant/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23625

Modified Files:
	wpa_supplicant.spec 
Added Files:
	wpa_supplicant-0.6.7-no-unrequested-reply.patch 
Log Message:
* Wed Feb 25 2009 Colin Walters <walters at verbum.org> - 1:0.6.7-4
- Add patch from upstream to suppress unrequested replies, this
  quiets a dbus warning.


wpa_supplicant-0.6.7-no-unrequested-reply.patch:

--- NEW FILE wpa_supplicant-0.6.7-no-unrequested-reply.patch ---
From: Helmut Schaa <helmut.schaa at googlemail.com>
Date: Mon, 9 Feb 2009 17:45:06 +0000 (+0200)
Subject: Send a dbus reply only if requested by the caller
X-Git-Url: http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff_plain;h=c3f5b1e16d119392ec30e3b5a0d015ee2aa3d664;hp=02a89365abba33fb462f739c325dc9cc3e847dae

Send a dbus reply only if requested by the caller

wpa_supplicant should not send a dbus reply as response to a method call
if no reply was requested by the caller. Sending a reply even if not
requested is basically no problem but triggers dbus warnings like the
one below.

Feb  9 07:31:23 linux-gvjr dbus-daemon: Rejected send message, 2 matched
rules; type="error", sender=":1.129" (uid=0 pid=30228
comm="/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wp")
interface="(unset)" member="(unset)" error
name="fi.epitest.hostap.WPASupplicant.InvalidInterface"
requested_reply=0 destination=":1.128" (uid=0 pid=30226
comm="/usr/sbin/NetworkManager "))

Signed-off-by: Helmut Schaa <helmut.schaa at googlemail.com>
---

diff --git a/wpa_supplicant/ctrl_iface_dbus.c b/wpa_supplicant/ctrl_iface_dbus.c
index b772247..c4e329c 100644
--- a/wpa_supplicant/ctrl_iface_dbus.c
+++ b/wpa_supplicant/ctrl_iface_dbus.c
@@ -548,7 +548,8 @@ static DBusHandlerResult wpas_iface_message_handler(DBusConnection *connection,
 
 	/* If the message was handled, send back the reply */
 	if (reply) {
-		dbus_connection_send(connection, reply, NULL);
+		if (!dbus_message_get_no_reply(message))
+			dbus_connection_send(connection, reply, NULL);
 		dbus_message_unref(reply);
 	}
 
@@ -607,7 +608,8 @@ static DBusHandlerResult wpas_message_handler(DBusConnection *connection,
 
 	/* If the message was handled, send back the reply */
 	if (reply) {
-		dbus_connection_send(connection, reply, NULL);
+		if (!dbus_message_get_no_reply(message))
+			dbus_connection_send(connection, reply, NULL);
 		dbus_message_unref(reply);
 	}
 


Index: wpa_supplicant.spec
===================================================================
RCS file: /cvs/pkgs/rpms/wpa_supplicant/devel/wpa_supplicant.spec,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- wpa_supplicant.spec	6 Feb 2009 22:25:50 -0000	1.53
+++ wpa_supplicant.spec	25 Feb 2009 18:17:56 -0000	1.54
@@ -2,7 +2,7 @@
 Name: wpa_supplicant
 Epoch: 1
 Version: 0.6.7
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: BSD
 Group: System Environment/Base
 Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
@@ -20,6 +20,8 @@
 Patch5: wpa_supplicant-0.6.7-quiet-scan-results-message.patch
 Patch6: wpa-supplicant-0.6.7-really-disassoc.patch
 Patch7: wpa_supplicant-0.6.7-wext-scan-size.patch
+# Upstream: http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff;h=c3f5b1e16d119392ec30e3b5a0d015ee2aa3d664;hp=02a89365abba33fb462f739c325dc9cc3e847dae#patch1
+Patch8: wpa_supplicant-0.6.7-no-unrequested-reply.patch
 
 URL: http://w1.fi/wpa_supplicant/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -55,6 +57,7 @@
 %patch5 -p1 -b .quiet-scan-results-msg
 %patch6 -p1 -b .really-disassociate
 %patch7 -p1 -b .lots-o-scan-results
+%patch8 -p1 -b .no-unrequested-reply
 
 %build
 pushd wpa_supplicant
@@ -145,6 +148,10 @@
 %{_bindir}/wpa_gui
 
 %changelog
+* Wed Feb 25 2009 Colin Walters <walters at verbum.org> - 1:0.6.7-4
+- Add patch from upstream to suppress unrequested replies, this
+  quiets a dbus warning.
+
 * Fri Feb  6 2009 Dan Williams <dcbw at redhat.com> - 1:0.6.7-3
 - Fix scan result retrieval in very dense wifi environments
 




More information about the scm-commits mailing list