Add -L to the mtree invocation to chase symbolic links that are present

in "Service jails."

Submitted by:	Jeremie Le Hen <jeremie@le-hen.org>
This commit is contained in:
Doug Barton 2009-05-16 21:32:09 +00:00
parent b6d82b1ae9
commit 7d7a10d261
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192219

View File

@ -461,7 +461,7 @@ MM_MAKE="make ${ARCHSTRING} -m ${SOURCEDIR}/share/mk"
#
CHANGED=
if [ -n "${AUTO_UPGRADE}" -a -f "${DESTDIR}${MTREEFILE}" ]; then
for file in `mtree -eq -f ${DESTDIR}${MTREEFILE} -p ${DESTDIR}/ \
for file in `mtree -eqL -f ${DESTDIR}${MTREEFILE} -p ${DESTDIR}/ \
2>/dev/null | awk '($2 == "changed") {print $1}'`; do
if [ -f "${DESTDIR}/$file" ]; then
CHANGED="${CHANGED} ${DESTDIR}/$file"