X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=uci.c;h=acbbfd808c6139f5e8b7a8768c53d6476dd8da27;hb=ed7d16a3e0953a02655d76b2a864b37192a0844c;hp=08489e3a227e88ac9341c99ea9792e9045284c0a;hpb=b0254d1203c9611ecdcf2ad9d6c9a43b80b44724;p=oweals%2Frpcd.git diff --git a/uci.c b/uci.c index 08489e3..acbbfd8 100644 --- a/uci.c +++ b/uci.c @@ -1236,11 +1236,8 @@ static int rpc_uci_apply_config(struct ubus_context *ctx, char *config) { struct uci_package *p = NULL; - struct uci_ptr ptr = { 0 }; - - ptr.package = config; - if (!uci_load(cursor, ptr.package, &p)) { + if (!uci_load(cursor, config, &p)) { uci_commit(cursor, &p, false); uci_unload(cursor, p); } @@ -1442,8 +1439,6 @@ rpc_uci_confirm(struct ubus_context *ctx, struct ubus_object *obj, if (!apply_sid[0]) return UBUS_STATUS_NO_DATA; - printf("CMP=%s/%s\n", apply_sid, sid); - if (strcmp(apply_sid, sid)) return UBUS_STATUS_PERMISSION_DENIED;