diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-24 16:48:13 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-24 16:48:13 +0100 |
commit | 25e6437875b2953f6b5706359e17db84334e7877 (patch) | |
tree | 8045dfd71d2cb5f482ba634df62a90d12f802f77 | |
parent | c60702b55cf8efe9dcd359fc9aa8e9c7cd421ada (diff) | |
download | uci-0.7.4.tar.gz |
add missing fflush() on close - fixes a bug in the lock/unlock order (thx, Cyrus)v0.7.4
-rw-r--r-- | util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -478,6 +478,7 @@ static void uci_close_stream(FILE *stream) if (!stream) return; + fflush(stream); fd = fileno(stream); flock(fd, LOCK_UN); fclose(stream); |