lib/unpack.c: use fsync(), there's not much difference with fdatasync().

--HG--
extra : convert_revision : 9632271e53f4d44890d711943642afddedf69e72
This commit is contained in:
Juan RP 2009-04-09 18:43:00 +02:00
parent f0f53cb07e
commit 41d9b9acb8

View file

@ -105,7 +105,7 @@ unpack_archive_init(prop_dictionary_t pkg, const char *binfile)
* is really on storage (if possible).
*/
if (rv == 0)
if (fdatasync(pkg_fd) == -1)
if (fsync(pkg_fd) == -1)
rv = errno;
archive_read_finish(ar);