lib/unpack.c: use fsync(), there's not much difference with fdatasync().
--HG-- extra : convert_revision : 9632271e53f4d44890d711943642afddedf69e72
This commit is contained in:
parent
f0f53cb07e
commit
41d9b9acb8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue