SOURCES: module-init-tools-modprobe_d.patch - check is file name l...

sparky sparky at pld-linux.org
Sat Jan 21 17:02:55 CET 2006


Author: sparky                       Date: Sat Jan 21 16:02:55 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- check is file name long enougth

---- Files affected:
SOURCES:
   module-init-tools-modprobe_d.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/module-init-tools-modprobe_d.patch
diff -u SOURCES/module-init-tools-modprobe_d.patch:1.1 SOURCES/module-init-tools-modprobe_d.patch:1.2
--- SOURCES/module-init-tools-modprobe_d.patch:1.1	Sat Jan 21 03:36:49 2006
+++ SOURCES/module-init-tools-modprobe_d.patch	Sat Jan 21 17:02:49 2006
@@ -6,7 +6,7 @@
  		struct dirent *i;
  		while ((i = readdir(dir)) != NULL) {
 -			if (!streq(i->d_name,".") && !streq(i->d_name,"..")) {
-+			if (!streq(i->d_name,".") && !streq(i->d_name,"..") &&
++			if (strlen(i->d_name) > 5 &&
 +					strcmp(i->d_name + strlen(i->d_name) - 5, ".conf") == 0) {
  				char sub[strlen(filename) + 1
  					 + strlen(i->d_name) + 1];
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/module-init-tools-modprobe_d.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list