summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2014-01-19 03:48:07 +0000
committerjsing <jsing@openbsd.org>2014-01-19 03:48:07 +0000
commit10588eb2f0f3daa42492cffc7e50abfb28122b90 (patch)
treecb708eed524c1c39b580b4399a0a8173ece2eab0
parentreplace bcmp with memcmp (diff)
downloadwireguard-openbsd-10588eb2f0f3daa42492cffc7e50abfb28122b90.tar.xz
wireguard-openbsd-10588eb2f0f3daa42492cffc7e50abfb28122b90.zip
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)