Răsfoiți Sursa

procd: fix processing of datatype specification with spaces

SVN-Revision: 38935
Jo-Philipp Wich 12 ani în urmă
părinte
comite
387761e2fc
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      package/system/procd/files/procd.sh

+ 2 - 2
package/system/procd/files/procd.sh

@@ -222,10 +222,10 @@ uci_validate_section()
 	local name="$3"
 	local error
 	shift; shift; shift
-	local result=`/sbin/validate_data "$package" "$type" "$name" $@ 2> /dev/null`
+	local result=`/sbin/validate_data "$package" "$type" "$name" "$@" 2> /dev/null`
 	error=$?
 	eval "$result"
-	[ "$error" = "0" ] || `/sbin/validate_data "$package" "$type" "$name" $@ 1> /dev/null`
+	[ "$error" = "0" ] || `/sbin/validate_data "$package" "$type" "$name" "$@" 1> /dev/null`
 	return $error
 }