Add some missing '${BASEDIR}/'s. Prior to this commit, FreeBSD Update

operating with the "-b basedir" option would not correctly update files
which had flags set or were hardlinked.

Submitted by:	Karsten Schmidt
Pointy hat to:	cperciva
MFC after:	1 week
This commit is contained in:
Colin Percival 2007-05-16 15:20:51 +00:00
parent ae1be01f9e
commit e829ed67a2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169603

View File

@ -1710,11 +1710,11 @@ install_unschg () {
# Remove flags
while read F; do
if ! [ -e ${F} ]; then
if ! [ -e ${BASEDIR}/${F} ]; then
continue
fi
chflags noschg ${F} || return 1
chflags noschg ${BASEDIR}/${F} || return 1
done < filelist
# Clean up
@ -1743,7 +1743,7 @@ install_from_index () {
rm ${HASH}
else
# Create a hard link.
ln -f ${LINK} ${BASEDIR}/${FPATH}
ln -f ${BASEDIR}/${LINK} ${BASEDIR}/${FPATH}
fi
;;
L)