uci: tighten uci add operation error handling
authorJo-Philipp Wich <jo@mein.io>
Wed, 8 Aug 2018 21:55:07 +0000 (23:55 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 8 Aug 2018 22:07:26 +0000 (00:07 +0200)
commit948bb5187523ee596f2de64bd6b94ec9a7f27546
tree7d796f39eab92bd78d84f45113fd373bba4fc924
parent51980c687b92d2ce78a77ad2a3ca8e4959bd937f
uci: tighten uci add operation error handling

- Return UBUS_STATUS_INVALID_ARGUMENT for invalid section or option names
- Return UBUS_STATUS_NOT_FOUND if a section name could not be resolved

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
uci.c