actually use HAVE_FDATASYNC
This commit is contained in:
1 parent
0f56b68eac
commit
618e504d30
3 files changed
+12
No files matched your search
@@ -954,7 +954,11 @@ main(int argc, char **argv)
|
||||
*/
|
||||
binpkg = xbps_xasprintf("%s.%s.xbps", pkgver, arch);
|
||||
|
||||
#ifdef HAVE_FDATASYNC
|
||||
(void)fdatasync(pkg_fd);
|
||||
#else
|
||||
(void)fsync(pkg_fd);
|
||||
#endif
|
||||
myumask = umask(0);
|
||||
(void)umask(myumask);
|
||||
|
||||
|
||||
Reference in new issue
Block a user