uci: fix session delta isolation
authorJo-Philipp Wich <jo@mein.io>
Thu, 15 Mar 2018 10:46:54 +0000 (11:46 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 15 Mar 2018 11:29:15 +0000 (12:29 +0100)
commit6994c87a4213fce75f6545f08f7ee254d12623f2
tree61a7289c12557b9ede43cd132c324a708b93a07f
parentcfe1e75c91bc1bac82e6caab3e652b0ebee59524
uci: fix session delta isolation

The libuci `uci_set_savedir()` function does not replace, but appends the
requested delta directory to the search path, this causes information leaks
between sessions.

Due to a lack of an official api for this, clear the uci contexts private
delta path before setting the save directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
uci.c