summaryrefslogtreecommitdiffstats
path: root/usr.sbin/installboot/sparc64_installboot.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-11-26 19:03:10 +0000
committerderaadt <deraadt@openbsd.org>2015-11-26 19:03:10 +0000
commit123b50946e11a616fd7d09540b18b58cc56f9d3b (patch)
treed38dd6efdc000a149a47f1d3721c701b892f6b26 /usr.sbin/installboot/sparc64_installboot.c
parentDelete YP password related code. As a result, these can also be (diff)
downloadwireguard-openbsd-123b50946e11a616fd7d09540b18b58cc56f9d3b.tar.xz
wireguard-openbsd-123b50946e11a616fd7d09540b18b58cc56f9d3b.zip
Apply pledge.
The people I asked to review this did not get back to me, so we will test this a different way.
Diffstat (limited to 'usr.sbin/installboot/sparc64_installboot.c')
-rw-r--r--usr.sbin/installboot/sparc64_installboot.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/installboot/sparc64_installboot.c b/usr.sbin/installboot/sparc64_installboot.c
index f68eec070f7..85f37e1f370 100644
--- a/usr.sbin/installboot/sparc64_installboot.c
+++ b/usr.sbin/installboot/sparc64_installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sparc64_installboot.c,v 1.4 2015/10/08 14:50:38 krw Exp $ */
+/* $OpenBSD: sparc64_installboot.c,v 1.5 2015/11/26 19:03:10 deraadt Exp $ */
/*
* Copyright (c) 2012, 2013 Joel Sing <jsing@openbsd.org>
@@ -92,8 +92,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)