diff options
author | 2017-06-06 20:34:07 +0000 | |
---|---|---|
committer | 2017-06-06 20:34:07 +0000 | |
commit | eb56a81a26003446ec2344fb504abfea42d0562e (patch) | |
tree | 3247a3b1fc37751a47d190b98f4429036f101fdf | |
parent | Call xbf_intr for polled transfers that can't sleep (diff) | |
download | wireguard-openbsd-eb56a81a26003446ec2344fb504abfea42d0562e.tar.xz wireguard-openbsd-eb56a81a26003446ec2344fb504abfea42d0562e.zip |
Don't patch(1) as the 'build' user; it has no right over the src tree.
That bug was hidden because patch(1) returns '0' on that particular case.
To be fixed...
ok robert@
-rw-r--r-- | distrib/syspatch/bsd.syspatch.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/syspatch/bsd.syspatch.mk b/distrib/syspatch/bsd.syspatch.mk index a382cf72d9a..cdfd7d0fe0f 100644 --- a/distrib/syspatch/bsd.syspatch.mk +++ b/distrib/syspatch/bsd.syspatch.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.syspatch.mk,v 1.11 2017/06/05 09:47:54 robert Exp $ +# $OpenBSD: bsd.syspatch.mk,v 1.12 2017/06/06 20:34:07 ajacoutot Exp $ # # Copyright (c) 2016-2017 Robert Nagy <robert@openbsd.org> # @@ -119,7 +119,7 @@ ${ERRATA}/${ERRATA}.patch: ${_PATCH_COOKIE}: ${ERRATA}/${ERRATA}.patch @echo '>> Applying ${ERRATA}.patch'; \ - su ${BUILDUSER} -c '/usr/bin/patch ${PATCH_ARGS} < ${ERRATA}/${ERRATA}.patch' || \ + /usr/bin/patch ${PATCH_ARGS} < ${ERRATA}/${ERRATA}.patch || \ { echo "***> ${ERRATA}.patch did not apply cleanly"; \ exit 1; }; @su ${BUILDUSER} -c 'touch $@' |