From 326f5bcaf6a9ee40f902947b428c7551aa29ef04 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 18 Dec 2013 13:56:54 +0100 Subject: [PATCH] fix inverted apply_running check Signed-off-by: John Crispin --- uci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uci.c b/uci.c index 5abb9cd..af154f7 100644 --- a/uci.c +++ b/uci.c @@ -1124,7 +1124,7 @@ rpc_uci_revert_commit(struct ubus_context *ctx, struct blob_attr *msg, bool comm struct uci_package *p = NULL; struct uci_ptr ptr = { 0 }; - if (!apply_running) + if (apply_running) return UBUS_STATUS_PERMISSION_DENIED; blobmsg_parse(rpc_uci_config_policy, __RPC_C_MAX, tb, -- 2.11.0