diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-02-03 23:37:14 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-02-03 23:37:14 +0000 |
commit | 3cee84e03164f633467a8e2b0ea12df1c50bfa1a (patch) | |
tree | e9e9b1b28f957d7d8b44095adc1689fabe511c32 /share/mk/bsd.nls.mk | |
parent | 953ea03018f155940b6a4b4d34edf9d5107822fe (diff) | |
download | FreeBSD-src-3cee84e03164f633467a8e2b0ea12df1c50bfa1a.zip FreeBSD-src-3cee84e03164f633467a8e2b0ea12df1c50bfa1a.tar.gz |
Don't let NLSLINKS contain itself.
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share/mk/bsd.nls.mk')
-rw-r--r-- | share/mk/bsd.nls.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/mk/bsd.nls.mk b/share/mk/bsd.nls.mk index c578361..d160a2b 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}} |