X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-dump.c;h=887a20822d828ef6dab98f58f156e37bebefdf06;hp=2849eabaadb9b292b0eab8e4dab6c10d4b26398d;hb=f3ee655b493c7e57621226a98abc9e9db5d0cb27;hpb=f6b54fbcf6860e687b5b058810c1d17622dbab23 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));