fix `uci import` with not yet existing packages
authorAlexander Couzens <lynxis@fe80.eu>
Wed, 19 Mar 2014 12:50:01 +0000 (13:50 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 1 Apr 2014 15:57:56 +0000 (17:57 +0200)
commit31d4b691d96af442e8dfcefbb7acf85a448bba5c
tree720b8b5f5edbf456ed64210f1406162c94665052
parent393bc2b908ef44cb8b417126a35d4915c4cdfbc9
fix `uci import` with not yet existing packages

uci_file_commit() tries to open and lock a package file (e.g.
/etc/config/system)
before writing into. When the package file doesn't exist, uci fails with
'Entry not found'.
file.c