diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/profile.eselect | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/profile.eselect b/modules/profile.eselect index cef26f3..11e90d2 100644 --- a/modules/profile.eselect +++ b/modules/profile.eselect @@ -69,6 +69,12 @@ set_symlink() { ln -s "$(relative_name \ "${ROOT}${portdir}" "${EROOT}/etc")/profiles/${target}" \ "${EROOT}/etc/make.profile" + # check if the resulting symlink is sane + if [[ $(canonicalise "${EROOT}/etc/make.profile") \ + != "$(canonicalise "${EROOT}")"/* ]]; then + write_warning_msg \ + "Strange path. Check ${EROOT}/etc/make.profile symlink" + fi else die -q "Target \"${1}\" doesn't appear to be valid!" fi |