View | Details | Raw Unified | Return to bug 186152 | Differences between
and this patch

Collapse All | Expand All

(-)freebsd-update (-2 / +12 lines)
Lines 1437-1447 Link Here
1437
	# sorted by device and inode number.
1437
	# sorted by device and inode number.
1438
	while read F; do
1438
	while read F; do
1439
		# If the symlink/file/directory does not exist, record this.
1439
		# If the symlink/file/directory does not exist, record this.
1440
		if ! [ -e ${BASEDIR}/${F} ]; then
1440
		# Symlinks with absolute paths need to be checked relative
1441
		# to their base directories.
1442
		FF=${F}
1443
		if [ -L ${BASEDIR}/${F} ]; then
1444
			LINK=`readlink ${BASEDIR}/${F}`
1445
			echo "${LINK}" | grep -qe "^/"
1446
			if [ $? -eq 0 ]; then
1447
				FF=${LINK}
1448
			fi
1449
		fi
1450
		if ! [ -e ${BASEDIR}/${FF} ]; then
1441
			echo "${F}|-||||||"
1451
			echo "${F}|-||||||"
1442
			continue
1452
			continue
1443
		fi
1453
		fi
1444
		if ! [ -r ${BASEDIR}/${F} ]; then
1454
		if ! [ -r ${BASEDIR}/${FF} ]; then
1445
			echo "Cannot read file: ${BASEDIR}/${F}"	\
1455
			echo "Cannot read file: ${BASEDIR}/${F}"	\
1446
			    >/dev/stderr
1456
			    >/dev/stderr
1447
			touch .err
1457
			touch .err

Return to bug 186152