procd: fix processing of datatype specification with spaces
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 28 Nov 2013 11:26:34 +0000 (11:26 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 28 Nov 2013 11:26:34 +0000 (11:26 +0000)
SVN-Revision: 38935

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
 }