rpms/wpa_supplicant/devel wpa_supplicant-0.5.7-fix-signal-leaks.patch, NONE, 1.1 wpa_supplicant.logrotate, NONE, 1.1 wpa_supplicant.init.d, 1.3, 1.4 wpa_supplicant.spec, 1.35, 1.36 wpa_supplicant.sysconfig, 1.3, 1.4
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Thu Dec 6 23:41:08 UTC 2007
- Previous message (by thread): rpms/thunar-volman/devel thunar-volman.spec,1.3,1.4
- Next message (by thread): rpms/postgis/F-8 .cvsignore, 1.4, 1.5 postgis-jdbcmakefile.patch, 1.2, 1.3 postgis.spec, 1.7, 1.8 sources, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: dcbw
Update of /cvs/extras/rpms/wpa_supplicant/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19659
Modified Files:
wpa_supplicant.init.d wpa_supplicant.spec
wpa_supplicant.sysconfig
Added Files:
wpa_supplicant-0.5.7-fix-signal-leaks.patch
wpa_supplicant.logrotate
Log Message:
* Thu Dec 6 2007 Dan Williams <dcbw at redhat.com> - 1:0.5.7-19
- Fix two leaks when signalling state and scan results (rh #408141)
- Add logrotate config file (rh #404181)
- Add new LSB initscript header to initscript with correct deps (rh #244029)
- Move other runtime arguments to /etc/sysconfig/wpa_supplicant
- Start after messagebus service (rh #385191)
- Fix initscript 'condrestart' command (rh #217281)
wpa_supplicant-0.5.7-fix-signal-leaks.patch:
--- NEW FILE wpa_supplicant-0.5.7-fix-signal-leaks.patch ---
diff -up wpa_supplicant-0.5.7/ctrl_iface_dbus.c.signal-leak-fix wpa_supplicant-0.5.7/ctrl_iface_dbus.c
--- wpa_supplicant-0.5.7/ctrl_iface_dbus.c.signal-leak-fix 2007-12-06 18:10:22.000000000 -0500
+++ wpa_supplicant-0.5.7/ctrl_iface_dbus.c 2007-12-06 18:11:38.000000000 -0500
@@ -649,6 +649,7 @@ void wpa_supplicant_dbus_notify_scan_res
return;
}
dbus_connection_send(iface->con, signal, NULL);
+ dbus_message_unref (signal);
}
@@ -666,7 +667,7 @@ void wpa_supplicant_dbus_notify_state_ch
wpa_states old_state)
{
struct ctrl_iface_dbus_priv *iface;
- DBusMessage *signal;
+ DBusMessage *signal = NULL;
const char *path;
const char *new_state_str, *old_state_str;
@@ -711,7 +712,7 @@ void wpa_supplicant_dbus_notify_state_ch
wpa_printf(MSG_ERROR,
"wpa_supplicant_dbus_notify_state_change[dbus]: "
"couldn't convert state strings.");
- return;
+ goto out;
}
if (!dbus_message_append_args(signal,
@@ -724,8 +725,13 @@ void wpa_supplicant_dbus_notify_state_ch
"wpa_supplicant_dbus_notify_state_change[dbus]: "
"not enough memory to construct state change "
"signal.");
+ goto out;
}
+
dbus_connection_send(iface->con, signal, NULL);
+
+out:
+ dbus_message_unref (signal);
}
--- NEW FILE wpa_supplicant.logrotate ---
/var/log/wpa_supplicant.log {
missingok
notifempty
size 30k
create 0600 root root
}
Index: wpa_supplicant.init.d
===================================================================
RCS file: /cvs/extras/rpms/wpa_supplicant/devel/wpa_supplicant.init.d,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- wpa_supplicant.init.d 24 Aug 2007 17:40:37 -0000 1.3
+++ wpa_supplicant.init.d 6 Dec 2007 23:40:35 -0000 1.4
@@ -2,7 +2,7 @@
#
# wpa_supplicant
#
-# chkconfig: - 12 88
+# chkconfig: - 23 88
# description: wpa_supplicant is a WPA Supplicant for Linux, BSD and \
# Windows with support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant \
# is the IEEE 802.1X/WPA component that is used in the client stations. \
@@ -11,6 +11,15 @@
# processname: wpa_supplicant
# config: /etc/wpa_supplicant/wpa_supplicant.conf
#
+### BEGIN INIT INFO
+# Provides: wpa_supplicant
+# Required-Start: $local_fs $messagebus
+# Required-Stop: $local_fs $messagebus
+# Default-Start: 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: start and stop wpa_supplicant
+# Description: wpa_supplicant is a tool for connecting to wireless networks
+### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
@@ -27,7 +36,7 @@
start() {
echo -n $"Starting $prog: $conf, $INTERFACES, $DRIVERS"
- daemon $prog -c $conf $INTERFACES $DRIVERS -B -u -f
+ daemon $prog -c $conf $INTERFACES $DRIVERS -B $OTHER_ARGS
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
@@ -72,7 +81,7 @@
fdr_status
;;
condrestart|try-restart)
- [ -f $lockfile ] || restart
+ [ -f $lockfile ] && restart
;;
*)
echo $"Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}"
Index: wpa_supplicant.spec
===================================================================
RCS file: /cvs/extras/rpms/wpa_supplicant/devel/wpa_supplicant.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- wpa_supplicant.spec 5 Dec 2007 02:47:27 -0000 1.35
+++ wpa_supplicant.spec 6 Dec 2007 23:40:35 -0000 1.36
@@ -2,7 +2,7 @@
Name: wpa_supplicant
Epoch: 1
Version: 0.5.7
-Release: 18%{?dist}
+Release: 19%{?dist}
License: BSD
Group: System Environment/Base
Source0: http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
@@ -12,6 +12,7 @@
Source4: %{name}.sysconfig
Source5: madwifi-headers-r1475.tar.bz2
Source6: fi.epitest.hostap.WPASupplicant.service
+Source7: %{name}.logrotate
Patch0: wpa_supplicant-assoc-timeout.patch
Patch1: wpa_supplicant-driver-wext-debug.patch
Patch2: wpa_supplicant-wep-key-fix.patch
@@ -28,6 +29,7 @@
Patch12: wpa_supplicant-0.5.7-ignore-dup-ca-cert-addition.patch
Patch13: wpa_supplicant-0.5.7-fix-dynamic-wep-with-mac80211.patch
Patch14: wpa_supplicant-0.5.7-use-IW_ENCODE_TEMP.patch
+Patch15: wpa_supplicant-0.5.7-fix-signal-leaks.patch
URL: http://w1.fi/wpa_supplicant/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -69,6 +71,7 @@
%patch12 -p1 -b .ignore-dup-ca-cert-addition
%patch13 -p1 -b .fix-dynamic-wep-with-mac80211
%patch14 -p1 -b .use-IW_ENCODE_TEMP
+%patch15 -p1 -b .signal-leak-fixes
%build
cp %{SOURCE1} ./.config
@@ -86,6 +89,8 @@
install -d %{buildroot}/%{_sysconfdir}/sysconfig
install -m 0755 %{SOURCE3} %{buildroot}/%{_sysconfdir}/rc.d/init.d/%{name}
install -m 0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
+install -d %{buildroot}/%{_sysconfdir}/logrotate.d
+install -m 0644 %{SOURCE7} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
# config
install -d %{buildroot}/%{_sysconfdir}/%{name}
@@ -138,6 +143,7 @@
%doc COPYING ChangeLog README eap_testing.txt todo.txt wpa_supplicant.conf examples
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
+%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_sysconfdir}/rc.d/init.d/%{name}
%{_sysconfdir}/dbus-1/system.d/%{name}.conf
%{_datadir}/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service
@@ -154,6 +160,14 @@
%{_bindir}/wpa_gui
%changelog
+* Thu Dec 6 2007 Dan Williams <dcbw at redhat.com> - 1:0.5.7-19
+- Fix two leaks when signalling state and scan results (rh #408141)
+- Add logrotate config file (rh #404181)
+- Add new LSB initscript header to initscript with correct deps (rh #244029)
+- Move other runtime arguments to /etc/sysconfig/wpa_supplicant
+- Start after messagebus service (rh #385191)
+- Fix initscript 'condrestart' command (rh #217281)
+
* Tue Dec 4 2007 Matthias Clasen <mclasen at redhat.com> - 1:0.5.7-18
- Rebuild against new openssl
Index: wpa_supplicant.sysconfig
===================================================================
RCS file: /cvs/extras/rpms/wpa_supplicant/devel/wpa_supplicant.sysconfig,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- wpa_supplicant.sysconfig 24 Aug 2007 17:40:37 -0000 1.3
+++ wpa_supplicant.sysconfig 6 Dec 2007 23:40:35 -0000 1.4
@@ -1,2 +1,12 @@
+# Use the flag "-i" before each of your interfaces, like so:
+# INTERFACES="-ieth1 -iwlan0"
INTERFACES=""
+
+# Use the flag "-D" before each driver, like so:
+# DRIVERS="-Dwext"
DRIVERS=""
+
+# Other arguments
+# -u Enable the D-Bus interface (required for use with NetworkManager)
+# -f Log to /var/log/wpa_supplicant.log
+OTHER_ARGS="-u -f"
- Previous message (by thread): rpms/thunar-volman/devel thunar-volman.spec,1.3,1.4
- Next message (by thread): rpms/postgis/F-8 .cvsignore, 1.4, 1.5 postgis-jdbcmakefile.patch, 1.2, 1.3 postgis.spec, 1.7, 1.8 sources, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list