summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-12-18 13:56:54 +0100
committerJohn Crispin <blogic@openwrt.org>2013-12-18 13:56:54 +0100
commit326f5bcaf6a9ee40f902947b428c7551aa29ef04 (patch)
treeb4af43e1d84e34c86e47a60bb2d114c8d709e0b5
parent065d8f47fcf456015de33ea800773e18b0fd8c4f (diff)
downloadrpcd-326f5bcaf6a9ee40f902947b428c7551aa29ef04.tar.gz
fix inverted apply_running check
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r--uci.c2
1 files changed, 1 insertions, 1 deletions
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,