An ubus RPC daemon for Liminix
Find a file
Jo-Philipp Wich 0239c345ca uci: introduce confirm method to cancel pending rollbacks without side effects
Calling commit with rollback=false to cancel a pending rollback timer can
potentially trigger another commit if no rollback is actually pending.

This introduces a new method "confirm" which cancels the rollback timer
without any other possible side effects.

While being at it, change the return code when trying to commit during
a pending rollback or when trying to rollback without a pending timeout to
UBUS_STATUS_NO_DATA. This is needed to be able to differentiate between a
denied request and an inappropriate state.

Also change the error return code for glob() failures to the more
appropriate UBUS_STATUS_NOT_FOUND.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-01-12 17:02:43 +00:00
include/rpcd Extend copyright 2014-01-12 12:48:58 +00:00
CMakeLists.txt rpcd: CMake: fix out of tree builds 2013-10-10 12:19:01 +00:00
exec.c Extend copyright 2014-01-12 12:48:58 +00:00
file.c Extend copyright 2014-01-12 12:48:58 +00:00
iwinfo.c Extend copyright 2014-01-12 12:48:58 +00:00
main.c Extend copyright 2014-01-12 12:48:58 +00:00
plugin.c Extend copyright 2014-01-12 12:48:58 +00:00
session.c Extend copyright 2014-01-12 12:48:58 +00:00
uci.c uci: introduce confirm method to cancel pending rollbacks without side effects 2014-01-12 17:02:43 +00:00
unauthenticated.json session: setup a persistent NULL section and implement login procedure 2013-09-10 19:56:36 +02:00