Add an assertion to avoid the 'rm -rf /etc' case from cleanobj fixed in r325404.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Bryan Drewery 2017-11-04 21:05:03 +00:00
parent 5abdb50e57
commit 968be8a7a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325405

View File

@ -84,6 +84,10 @@ OBJTOP?= ${MAKEOBJDIR}
CANONICALOBJDIR:=/usr/obj${.CURDIR}
.endif
.if ${CANONICALOBJDIR} == /${RELDIR} || ${.OBJDIR} == /${RELDIR}
.error .OBJDIR incorrectly set to /${RELDIR}
.endif
OBJTOP?= ${.OBJDIR:S,${.CURDIR},,}${SRCTOP}
#