From 41d9b9acb8aa6e5f17f875441c7afd3fe8f220ec Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 9 Apr 2009 18:43:00 +0200 Subject: [PATCH] lib/unpack.c: use fsync(), there's not much difference with fdatasync(). --HG-- extra : convert_revision : 9632271e53f4d44890d711943642afddedf69e72 --- lib/unpack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/unpack.c b/lib/unpack.c index e61f6ee635d..36126468ed4 100644 --- a/lib/unpack.c +++ b/lib/unpack.c @@ -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);