From eb56a81a26003446ec2344fb504abfea42d0562e Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Tue, 6 Jun 2017 20:34:07 +0000 Subject: [PATCH] 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@ --- distrib/syspatch/bsd.syspatch.mk | 4 ++-- 1 file 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 # @@ -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 $@' -- 2.20.1