summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrpe <rpe@openbsd.org>2017-01-29 17:06:56 +0000
committerrpe <rpe@openbsd.org>2017-01-29 17:06:56 +0000
commit92d422c27679688ea6c6b5b3a5fd8b149be0c3fc (patch)
treecbd6afc3568e3626c84408c12f6aa4b8afceef6f /Makefile
parentIn dwctwo(4), fix an off-by-one in frame interval calculation. (diff)
downloadwireguard-openbsd-92d422c27679688ea6c6b5b3a5fd8b149be0c3fc.tar.xz
wireguard-openbsd-92d422c27679688ea6c6b5b3a5fd8b149be0c3fc.zip
Ensure the build user can write to the GLOBAL_AUTOCONF_CACHE file by
creating or truncating it with the proper ownership and permissions. OK tb@
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0f4fd40faad..fefbfd6c560 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.131 2016/11/19 14:20:58 tb Exp $
+# $OpenBSD: Makefile,v 1.132 2017/01/29 17:06:56 rpe Exp $
#
# For more information on building in tricky environments, please see
@@ -75,7 +75,8 @@ build:
do-build:
.ifdef GLOBAL_AUTOCONF_CACHE
- cp /dev/null ${GLOBAL_AUTOCONF_CACHE}
+ ${INSTALL} -c -o ${BUILDUSER} -g ${WOBJGROUP} -m 664 /dev/null \
+ ${GLOBAL_AUTOCONF_CACHE}
.endif
@if [[ `id -u` -ne 0 ]]; then \
echo $@ must be called by root >&2; \