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:
bdrewery 2017-11-04 21:05:03 +00:00
parent e84979b216
commit c3e293f179

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}
#