Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 830707
Collapse All | Expand All

(-)a/modules/profile.eselect (-1 / +2 lines)
Lines 137-143 set_symlink() { Link Here
137
		"${MAKE_PROFILE}" \
137
		"${MAKE_PROFILE}" \
138
		|| die -q "Couldn't set new ${MAKE_PROFILE} symlink"
138
		|| die -q "Couldn't set new ${MAKE_PROFILE} symlink"
139
	# check if the resulting symlink is sane
139
	# check if the resulting symlink is sane
140
	[[ $(canonicalise "${MAKE_PROFILE}") != "$(canonicalise "${EROOT}")"/* ]] \
140
	local eroot=$(canonicalise "${EROOT:-/}")
141
	[[ $(canonicalise "${MAKE_PROFILE}") != "${eroot%/}"/* ]] \
141
		&& [[ -z ${force} ]] \
142
		&& [[ -z ${force} ]] \
142
		&& write_warning_msg "Strange path. Check ${MAKE_PROFILE} symlink"
143
		&& write_warning_msg "Strange path. Check ${MAKE_PROFILE} symlink"
143
144

Return to bug 830707