diff options
author | rpe <rpe@openbsd.org> | 2017-01-29 17:06:56 +0000 |
---|---|---|
committer | rpe <rpe@openbsd.org> | 2017-01-29 17:06:56 +0000 |
commit | 92d422c27679688ea6c6b5b3a5fd8b149be0c3fc (patch) | |
tree | cbd6afc3568e3626c84408c12f6aa4b8afceef6f /Makefile | |
parent | In dwctwo(4), fix an off-by-one in frame interval calculation. (diff) | |
download | wireguard-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-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; \ |