From 91a44dfeefcd4fc297142632246637067e8fb386 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Wed, 3 Feb 2016 23:37:14 +0000 Subject: [PATCH] Don't let NLSLINKS contain itself. Sponsored by: EMC / Isilon Storage Division --- share/mk/bsd.nls.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/mk/bsd.nls.mk b/share/mk/bsd.nls.mk index c578361fdd53..d160a2bcf2d4 100644 --- a/share/mk/bsd.nls.mk +++ b/share/mk/bsd.nls.mk @@ -73,6 +73,9 @@ SYMLINKS+= ${NLSSYMLINKS} .for file in ${NLS} NLSNAME_${file:T}= ${file:T:R}/${NLSNAME}.cat .if defined(NLSLINKS_${file:R}) && !empty(NLSLINKS_${file:R}) +.if !empty(NLSLINKS_${file:R}:M${file:R}) +.error NLSLINKS_${file:R} contains itself: ${file:R} +.endif NLSLINKS+= ${file:R} .endif .for dst in ${NLSLINKS_${file:R}}