X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=file.c;h=04973f395655361bf9a3adede6e82d254a2a7a4c;hp=36bfdda7272dbb4409442932158293436c345da2;hb=31d4b691d96af442e8dfcefbb7acf85a448bba5c;hpb=393bc2b908ef44cb8b417126a35d4915c4cdfbc9 diff --git a/file.c b/file.c index 36bfdda..04973f3 100644 --- a/file.c +++ b/file.c @@ -714,7 +714,7 @@ static void uci_file_commit(struct uci_context *ctx, struct uci_package **packag UCI_THROW(ctx, UCI_ERR_IO); /* open the config file for writing now, so that it is locked */ - f1 = uci_open_stream(ctx, p->path, SEEK_SET, false, false); + f1 = uci_open_stream(ctx, p->path, SEEK_SET, true, true); /* flush unsaved changes and reload from delta file */ UCI_TRAP_SAVE(ctx, done);