procd: fix processing of datatype specification with spaces
[openwrt/staging/wigyori.git] / package / system / procd / files / procd.sh
index ddb6d95e684d868a6b9f9d93dc9cb3710f7c781d..2f97a5d7d2855198cac8d92eeed61e76fdee5a6d 100644 (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
 }