summaryrefslogtreecommitdiff
path: root/usr.sbin/installboot/vax_installboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/installboot/vax_installboot.c')
-rw-r--r--usr.sbin/installboot/vax_installboot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/installboot/vax_installboot.c b/usr.sbin/installboot/vax_installboot.c
index e002a970660..2914d230dc4 100644
--- a/usr.sbin/installboot/vax_installboot.c
+++ b/usr.sbin/installboot/vax_installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vax_installboot.c,v 1.2 2015/10/15 19:27:30 miod Exp $ */
+/* $OpenBSD: vax_installboot.c,v 1.3 2015/11/26 19:03:10 deraadt Exp $ */
/*
* Copyright (c) 2013 Joel Sing <jsing@openbsd.org>
@@ -40,8 +40,7 @@ md_loadboot(void)
void
md_installboot(int devfd, char *dev)
{
- /* XXX - is this necessary? */
- sync();
+ fsync(devfd);
bootldr = fileprefix(root, bootldr);
if (bootldr == NULL)