SOURCES: htb.init-find.patch (NEW) - fixes find warnings

paszczus paszczus at pld-linux.org
Thu Apr 20 12:41:22 CEST 2006


Author: paszczus                     Date: Thu Apr 20 10:41:22 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixes find warnings

---- Files affected:
SOURCES:
   htb.init-find.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/htb.init-find.patch
diff -u /dev/null SOURCES/htb.init-find.patch:1.1
--- /dev/null	Thu Apr 20 12:41:22 2006
+++ SOURCES/htb.init-find.patch	Thu Apr 20 12:41:17 2006
@@ -0,0 +1,33 @@
+--- htb.init-v0.8.5	2004-01-29 21:41:23.000000000 +0000
++++ htb.init-v0.8.5.fixed	2006-04-20 10:37:35.000000000 +0000
+@@ -468,8 +468,8 @@
+ 	### List of classes in $HTB_PATH
+ 	htb_class_list () {
+ 		for dev in `htb_device_list`; do
+-			find $HTB_PATH \( -type f -or -type l \) \
+-			-name "$dev-*" -not -name '*~' -maxdepth 1 \
++			find $HTB_PATH -maxdepth 1 \( -type f -or -type l \) \
++			-name "$dev-*" -not -name '*~' \
+ 			-printf "%f\n"| sort
+ 		done
+ 	} # htb_class_list
+@@ -483,8 +483,8 @@
+ 	### Validate cache against config files
+ 	htb_valid_cache () {
+ 		for dev in `htb_device_list`; do
+-			[ `find $HTB_PATH \( -type f -or -type l \) \
+-			  -name "$dev*" -maxdepth 1 -newer $HTB_CACHE| \
++			[ `find $HTB_PATH -maxdepth 1 \( -type f -or -type l \) \
++			  -name "$dev*" -newer $HTB_CACHE| \
+ 			  wc -l` -gt 0 ] && VALID=0
+ 			[ $VALID -ne 1 ] && break
+ 		done
+@@ -493,7 +493,7 @@
+ 
+ 	### Find class config for device $1, which is newer than cache
+ 	htb_cache_older () {
+-		[ `find $HTB_PATH -type f -name "$1*" -maxdepth 1 \
++		[ `find $HTB_PATH -maxdepth 1 -type f -name "$1*" \
+ 		   -newer $HTB_CACHE| wc -l` -gt 0 ] && return 0
+ 		return 1
+ 	} # htb_cache_older
================================================================


More information about the pld-cvs-commit mailing list