projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netifd: propagate error code on netifd_reload()
[project/netifd.git]
/
ubus.c
diff --git
a/ubus.c
b/ubus.c
index
1b1a4cd
..
945eca1
100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-44,8
+44,10
@@
netifd_handle_reload(struct ubus_context *ctx, struct ubus_object *obj,
struct ubus_request_data *req, const char *method,
struct blob_attr *msg)
{
- netifd_reload();
- return 0;
+ if (netifd_reload())
+ return UBUS_STATUS_UNKNOWN_ERROR;
+
+ return UBUS_STATUS_OK;
}
enum {