rpms/aircrack-ng/devel aircrack-ng-0.9.1-aireplay.patch, NONE, 1.1 aircrack-ng.spec, 1.9, 1.10

Till Maas (till) fedora-extras-commits at redhat.com
Thu Aug 23 22:23:05 UTC 2007


Author: till

Update of /cvs/pkgs/rpms/aircrack-ng/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13388

Modified Files:
	aircrack-ng.spec 
Added Files:
	aircrack-ng-0.9.1-aireplay.patch 
Log Message:
add some bugfixes:
https://www.redhat.com/archives/fedora-devel-list/2007-August/msg01684.html
https://www.redhat.com/archives/fedora-devel-list/2007-August/msg01685.html



aircrack-ng-0.9.1-aireplay.patch:

--- NEW FILE aircrack-ng-0.9.1-aireplay.patch ---
Two issues:
- the * in the fin string needs to be escaped to prevend shell expansion
- O_CREAT is not needed, and when used there must be a mode argument

diff -ru aircrack-ng-0.9.1/src/aireplay-ng.c aircrack-ng-0.9.1.patched/src/aireplay-ng.c
--- aircrack-ng-0.9.1/src/aireplay-ng.c	2007-06-25 21:56:30.000000000 +0200
+++ aircrack-ng-0.9.1.patched/src/aireplay-ng.c	2007-08-24 00:17:47.000000000 +0200
@@ -317,14 +317,14 @@
     char * newline;
 
     /* look for the location of inject_nofcs */
-    FILE * search_inject = popen("find /sys/devices -name *inject_nofcs", "r");
+    FILE * search_inject = popen("find /sys/devices -name \\*inject_nofcs", "r");
     if(fgets(location, sizeof location, search_inject)) {
         /* replace the newline on the end by \0 */
         newline = strrchr(location, '\n');
         if (newline) *newline = '\0';
 
         /* try to open the file we found */
-        dev.nofcs = open(location, O_WRONLY | O_CREAT);
+        dev.nofcs = open(location, O_WRONLY);
         if (dev.nofcs < 0) {
             printf("Opening file '%s': ", location);
             perror("couldn't open file");


Index: aircrack-ng.spec
===================================================================
RCS file: /cvs/pkgs/rpms/aircrack-ng/devel/aircrack-ng.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- aircrack-ng.spec	23 Aug 2007 08:27:41 -0000	1.9
+++ aircrack-ng.spec	23 Aug 2007 22:22:32 -0000	1.10
@@ -12,6 +12,7 @@
 URL:            http://www.aircrack-ng.org/
 Source0:        http://download.aircrack-ng.org/aircrack-ng-%{version}.tar.gz
 Source1:        %{name}-tarball
+Patch0:         aircrack-ng-0.9.1-aireplay.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 
@@ -26,6 +27,7 @@
 %prep
 #%setup -q -n aircrack-ng-%{svndate}
 %setup -q -n aircrack-ng-%{version}
+%patch0 -p1
 
 
 %build
@@ -72,6 +74,7 @@
 * Thu Aug 23 2007 Till Maas <opensource till name> - 0.9.1-2
 - rebuild because of broken ppc32 package
 - update License Tag
+- fix some bugs in aireplay-ng.c
 
 * Thu Jun 28 2007 Till Maas <opensource till name> - 0.9.1-1
 - update to latest version




More information about the fedora-extras-commits mailing list