From 2f20d741ce1428ac5ecaa3beea9bad9cb2471b5c Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 23 Sep 2013 16:52:56 +0000 Subject: [PATCH] Do not require root credential for make clean if the stage cookie is not present Requested by: sunpoet --- Mk/bsd.port.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 6cbc86cb6a62..3db7dd6d1fa0 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -4563,7 +4563,7 @@ deinstall-all: .if !target(do-clean) do-clean: -.if !defined(NO_STAGE) && ${UID} != 0 && !defined(INSTALL_AS_USER) +.if !defined(NO_STAGE) && ${UID} != 0 && !defined(INSTALL_AS_USER) && exists(${STAGE_COOKIE}) @${ECHO_MSG} "===> Switching to root credentials for '${.TARGET}' target" @cd ${.CURDIR} && \ ${SU_CMD} "${MAKE} ${.TARGET}"