Line
Link Here
|
0 |
-- bin/misc-functions.sh |
0 |
++ bin/misc-functions.sh |
Lines 801-815
Link Here
|
801 |
IFS=${oldIFS} |
801 |
IFS=${oldIFS} |
802 |
[[ ${WHITELIST} == *" ${line[0]} "* ]] && continue |
802 |
[[ ${WHITELIST} == *" ${line[0]} "* ]] && continue |
803 |
local fp=${fn#${D}} ; fp=/${fp%/*} |
803 |
local fp=${fn#${D}} ; fp=/${fp%/*} |
|
|
804 |
# line[0] can be an absolutised path, bug #342929 |
805 |
local eprefix=$(canonicalize ${EPREFIX}) |
804 |
local rf=${fn} |
806 |
local rf=${fn} |
805 |
# in case we deal with a symlink, make sure we don't replace it |
807 |
# in case we deal with a symlink, make sure we don't replace it |
806 |
# with a real file (sed -i does that) |
808 |
# with a real file (sed -i does that) |
807 |
if [[ -L ${fn} ]] ; then |
809 |
if [[ -L ${fn} ]] ; then |
808 |
rf=$(readlink ${fn}) |
810 |
rf=$(readlink ${fn}) |
809 |
[[ ${rf} != /* ]] && rf=${fn%/*}/${rf} |
811 |
[[ ${rf} != /* ]] && rf=${fn%/*}/${rf} |
|
|
812 |
# ignore symlinks pointing to outside prefix |
813 |
# as seen in sys-devel/native-cctools |
814 |
[[ ${rf} != ${EPREFIX}/* && ${rf} != ${eprefix}/* ]] && continue |
810 |
fi |
815 |
fi |
811 |
# line[0] can be an absolutised path, bug #342929 |
|
|
812 |
local eprefix=$(canonicalize ${EPREFIX}) |
813 |
# does the shebang start with ${EPREFIX}, and does it exist? |
816 |
# does the shebang start with ${EPREFIX}, and does it exist? |
814 |
if [[ ${line[0]} == ${EPREFIX}/* || ${line[0]} == ${eprefix}/* ]] ; then |
817 |
if [[ ${line[0]} == ${EPREFIX}/* || ${line[0]} == ${eprefix}/* ]] ; then |
815 |
if [[ ! -e ${ROOT%/}${line[0]} && ! -e ${D%/}${line[0]} ]] ; then |
818 |
if [[ ! -e ${ROOT%/}${line[0]} && ! -e ${D%/}${line[0]} ]] ; then |