procd: fix processing of datatype specification with spaces

SVN-Revision: 38935
master
Jo-Philipp Wich 11 years ago
parent 8adb3fb74d
commit 387761e2fc
  1. 4
      package/system/procd/files/procd.sh

@ -222,10 +222,10 @@ uci_validate_section()
local name="$3" local name="$3"
local error local error
shift; shift; shift 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=$? error=$?
eval "$result" 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 return $error
} }

Loading…
Cancel
Save