From 5f4a08162510550a77fda0fc717146baed8afa8d Mon Sep 17 00:00:00 2001 From: markj Date: Fri, 4 Jan 2019 19:20:19 +0000 Subject: [PATCH] Disable savecore(8)'s libcasper support when WITHOUT_DYNAMICROOT=yes. This follows the example of other Capsicumized programs in /sbin. Reported by: Manfred Antar MFC with: r342699 Sponsored by: The FreeBSD Foundation --- sbin/savecore/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sbin/savecore/Makefile b/sbin/savecore/Makefile index 384af1370ec..172df7e857b 100644 --- a/sbin/savecore/Makefile +++ b/sbin/savecore/Makefile @@ -11,7 +11,9 @@ MAN= savecore.8 .include -.if ${MK_CASPER} != "no" && !defined(RESCUE) +.if ${MK_DYNAMICROOT} == "no" +.warning ${PROG} built without libcasper support +.elif ${MK_CASPER} != "no" && !defined(RESCUE) CFLAGS+= -DWITH_CASPER LIBADD+= casper cap_fileargs cap_syslog .endif -- 2.45.0