diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2017-06-06 20:34:08 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2017-06-06 20:34:08 +0000 |
commit | c98946cb6ce173aca55bee930e53bd0b18d21052 (patch) | |
tree | efe8f08674697c6218b30967f5f28c4eced5d743 /distrib/syspatch | |
parent | fb04eee26883b1249c0d22b9b242b2ecb89d3e34 (diff) |
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@
Diffstat (limited to 'distrib/syspatch')
-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 $@' |