procd: fix processing of datatype specification with spaces

SVN-Revision: 38935
This commit is contained in:
Jo-Philipp Wich 2013-11-28 11:26:34 +00:00
parent 8adb3fb74d
commit 387761e2fc

View File

@ -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
}