summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-01-19 03:48:08 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-01-19 03:48:08 +0000
commitacc1548251eafc48213013b276f26a415925355d (patch)
tree4ae114b40502194d1b84682ecc41322674e281ec
parent13e40ae60675147e6ba8f40726df0f56bd4f5171 (diff)
When copying files do it in 512 byte blocks so that we're less likely to
hit file system allocation issues on install media. Requested by deraadt@
-rw-r--r--usr.sbin/installboot/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/installboot/util.c b/usr.sbin/installboot/util.c
index 42221e65e6d..faa44ff3e3f 100644
--- a/usr.sbin/installboot/util.c
+++ b/usr.sbin/installboot/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.2 2014/01/18 03:07:05 jsing Exp $ */
+/* $OpenBSD: util.c,v 1.3 2014/01/19 03:48:07 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
@@ -27,7 +27,7 @@
#include "installboot.h"
-#define BUFSIZE 2048
+#define BUFSIZE 512
void
filecopy(const char *srcfile, const char *dstfile)