file: make uci commits atomic
authorLuka Perkov <luka@openwrt.org>
Thu, 10 Oct 2013 14:48:07 +0000 (16:48 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 15 Oct 2013 10:31:41 +0000 (12:31 +0200)
commit42429219a90d697d88c5203bddef34c31e552643
tree25243a81b697003796defadec4248c7fd298cded
parent2fcc6d756f23b439d24eb061ccd0a815a5626f69
file: make uci commits atomic

Avoids issues with UBIFS file system.

http://www.linux-mtd.infradead.org/faq/ubifs.html#L_atomic_change

Signed-off-by: Luka Perkov <luka@openwrt.org>
Reported-by: Tim Harvey <tharvey@gateworks.com>
file.c
util.c