mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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:
parent
5abdb50e57
commit
968be8a7a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325405
@ -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}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user