From: Jo-Philipp Wich Date: Wed, 8 May 2013 13:12:13 +0000 (+0200) Subject: Force fsync() after writing statefile X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6d0ae262f561a1e7559154c8e122ae9ca9c71590;p=oweals%2Ffirewall3.git Force fsync() after writing statefile --- diff --git a/utils.c b/utils.c index 5ba5d9e..fc8c201 100644 --- a/utils.c +++ b/utils.c @@ -602,6 +602,7 @@ fw3_write_statefile(void *state) uci_unload(s->uci, p); } + fsync(fileno(sf)); fclose(sf); } }