X-Git-Url: http://rtime.felk.cvut.cz/gitweb/notmuch.git/blobdiff_plain/3c13bc0321baaf340663779d6fce2b1f34c1c2c3..0c698ef0374b671d3b6a8def2d9c113797ceaec3:/notmuch-dump.c diff --git a/notmuch-dump.c b/notmuch-dump.c index 2849eaba..887a2082 100644 --- a/notmuch-dump.c +++ b/notmuch-dump.c @@ -169,7 +169,7 @@ notmuch_database_dump (notmuch_database_t *notmuch, } if (output_file_name) { - ret = fdatasync (outfd); + ret = fsync (outfd); if (ret) { fprintf (stderr, "Error syncing %s to disk: %s\n", name_for_error, strerror (errno));