validate: return error on failed validation
authorLuka Perkov <luka@openwrt.org>
Fri, 27 Jun 2014 14:23:43 +0000 (14:23 +0000)
committerJohn Crispin <blogic@openwrt.org>
Sun, 29 Jun 2014 11:50:16 +0000 (12:50 +0100)
commitc3d4118eee505f41c4d20a87f326479530837569
treef1c12cd1b34586f303d7ada33f3552bcb6d86e9a
parent89fa6427a27091dd501b66b9bcf009254abd7d80
validate: return error on failed validation

In the procd script (/lib/functions/procd.sh) uci_validate_section is in charge
of validating the uci config files. The uci_validate_section function checks
return code of validate_data tool; without this change in case of invalid
config values the function is not able to catch errors.

Signed-off-by: Luka Perkov <luka@openwrt.org>
validate/cli.c