Compare commits

...
Sign in to create a new pull request.

6 commits

Author SHA1 Message Date
Fedora Release Engineering
8976e8a982 dist-git conversion 2010-07-29 15:22:21 +00:00
Bill Nottingham
44d2f2afa1 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:17:36 +00:00
Tom Callaway
b69ca83b38 Fix wlassistant. 2007-11-17 16:18:59 +00:00
Tom Callaway
5882361b87 rebuild for ppc32, license tag fix 2007-08-27 17:55:31 +00:00
Tom Callaway
c5e9091be2 Try to fix bz 243509 2007-07-23 14:51:39 +00:00
Bill Nottingham
48f7f3e6a5 Initialize branch F-7 for wlassistant 2007-05-18 11:07:08 +00:00
6 changed files with 90 additions and 33 deletions

View file

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: wlassistant
# $Id$
NAME := wlassistant
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -0,0 +1,67 @@
diff -up wlassistant-0.5.7/src/watools.cpp.BAD wlassistant-0.5.7/src/watools.cpp
--- wlassistant-0.5.7/src/watools.cpp.BAD 2007-07-23 10:13:15.000000000 -0500
+++ wlassistant-0.5.7/src/watools.cpp 2007-07-23 10:16:48.000000000 -0500
@@ -23,6 +23,7 @@
#include <unistd.h> //provides readlink
#include <dirent.h>
#include <stdio.h> //to get values from /sys
+#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h> //inet_ntoa
@@ -178,6 +179,13 @@ int WATools::availableNetworks( const ch
_ifname = ifname;
if (iw_socket<0)
iw_socket = iw_sockets_open(); //get kernel socket
+ int flags;
+ flags = fcntl(iw_socket, F_GETFD);
+ if (flags == -1)
+ return 0;
+ flags |= FD_CLOEXEC;
+ if (fcntl(iw_socket, F_SETFD, flags) == -1)
+ return 0;
if (iw_socket<0)
return 0;
@@ -264,6 +272,13 @@ int WATools::doRequest( int request, str
_ifname = ifname;
if (iw_socket<0)
iw_socket = iw_sockets_open(); //get kernel socket
+ int flags;
+ flags = fcntl(iw_socket, F_GETFD);
+ if (flags == -1)
+ return 0;
+ flags |= FD_CLOEXEC;
+ if (fcntl(iw_socket, F_SETFD, flags) == -1)
+ return 0;
if (iw_socket<0)
return 0;
@@ -278,6 +293,13 @@ int WATools::doWirelessRequest( int requ
_ifname = ifname;
if (iw_socket<0)
iw_socket = iw_sockets_open(); //get kernel socket
+ int flags;
+ flags = fcntl(iw_socket, F_GETFD);
+ if (flags == -1)
+ return 0;
+ flags |= FD_CLOEXEC;
+ if (fcntl(iw_socket, F_SETFD, flags) == -1)
+ return 0;
if (iw_socket<0)
return 0;
@@ -292,6 +314,13 @@ int WATools::doWirelessStatisticsRequest
_ifname = ifname;
if (iw_socket<0)
iw_socket = iw_sockets_open();//get kernel socket
+ int flags;
+ flags = fcntl(iw_socket, F_GETFD);
+ if (flags == -1)
+ return 0;
+ flags |= FD_CLOEXEC;
+ if (fcntl(iw_socket, F_SETFD, flags) == -1)
+ return 0;
if (iw_socket<0)
return 0;

View file

@ -7,6 +7,5 @@ Comment=Application to look for wireless networks
Exec=/usr/sbin/wlassistant
Icon=/usr/share/icons/hicolor/32x32/apps/wlassistant.png
Type=Application
Categories=Application;SystemSetup;System;
Categories=Application;Settings
StartupNotify=true

View file

@ -1,8 +1,4 @@
#%PAM-1.0
auth sufficient pam_rootok.so
auth sufficient pam_timestamp.so
auth required pam_stack.so service=system-auth
session required pam_permit.so
session optional pam_xauth.so
session optional pam_timestamp.so
account required pam_permit.so
auth include config-util
account include config-util
session include config-util

View file

@ -1,7 +1,7 @@
Name: wlassistant
Version: 0.5.7
Release: 1%{?dist}
License: GPL
Release: 5%{?dist}
License: GPLv2+
Group: Applications/System
Summary: Wireless network management tool
URL: http://wlassistant.sourceforge.net
@ -14,8 +14,9 @@ BuildRequires: kdebase-devel, desktop-file-utils, wireless-tools-devel, scons
BuildRequires: qt-devel, gettext
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
Requires: usermode, wireless-tools, net-tools, dhclient
Requires: usermode, wireless-tools, net-tools, dhclient, pam
Patch0: wlassistant-0.5.5-rpath.patch
Patch1: wlassistant-0.5.7-fd_cloexec.patch
%description
Wireless Assistant (wlassistant) is a small application that allows you to
@ -32,6 +33,7 @@ MAIN FEATURES:
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
PARSED_OPT_FLAGS=`echo \'$RPM_OPT_FLAGS\' | sed "s/ /',/g" | sed "s/',/', '/g"`
@ -85,6 +87,20 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/icons/hicolor/32x32/apps/wlassistant.png
%changelog
* Sat Nov 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.5.7-5
- fix pam file to use console-apps pam tree, instead of its own
resolves 243240, 306041
* Mon Aug 27 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.5.7-4
- rebuild for ppc32
- license tag fix
* Mon Jul 23 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.5.7-3
- close file descriptors with FD_CLOEXEC, try to resolve bz 243509
* Wed May 23 2007 Christopher Aillon <caillon@redhat.com> 0.5.7-2
- Rebuild against newer libiw.so
* Tue Apr 10 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.5.7-1
- 0.5.7