summaryrefslogtreecommitdiffhomepage
path: root/source.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-04-03 11:33:49 +0200
committerJo-Philipp Wich <jo@mein.io>2023-04-03 12:58:52 +0200
commit5c7d07773a597b54bee5d8d1ec5609ceee83025e (patch)
treebe20d93585bbbac92dde8c17d1812cb2ee08e154 /source.c
parent51f4dba6731333c92217503fac15ad03f86d675f (diff)
uci: fix ctx.commit() without arguments
A uci commit operation may invalidate the package pointer, leading to an infinite loop while iterating the packages to commit. Refactor the code to first build a string list of configurations, then iterating it in order to avoid the iterator invalidation. While we're at it, also allow restricting save and revert operations to single configs, which was rejected as invalid before. Fixes: #146 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'source.c')
0 files changed, 0 insertions, 0 deletions