diff --git a/bin/xbps-create/main.c b/bin/xbps-create/main.c index 5f2e1017..4544fac5 100644 --- a/bin/xbps-create/main.c +++ b/bin/xbps-create/main.c @@ -895,7 +895,7 @@ main(int argc, char **argv) */ binpkg = xbps_xasprintf("%s.%s.xbps", pkgver, arch); - (void)fsync(pkg_fd); + (void)fdatasync(pkg_fd); myumask = umask(0); (void)umask(myumask);