Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 264183 Details for
Bug 282539
Portage: add QA check for non-prefixed shebangs
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to ignore symlinks pointing to outside prefix.
bug282539-extsymlinks.patch (text/plain), 975 bytes, created by
Michael Haubenwallner (RETIRED)
on 2011-02-28 16:20:26 UTC
(
hide
)
Description:
Patch to ignore symlinks pointing to outside prefix.
Filename:
MIME Type:
Creator:
Michael Haubenwallner (RETIRED)
Created:
2011-02-28 16:20:26 UTC
Size:
975 bytes
patch
obsolete
>--- bin/misc-functions.sh >+++ bin/misc-functions.sh >@@ -801,15 +801,18 @@ > IFS=${oldIFS} > [[ ${WHITELIST} == *" ${line[0]} "* ]] && continue > local fp=${fn#${D}} ; fp=/${fp%/*} >+ # line[0] can be an absolutised path, bug #342929 >+ local eprefix=$(canonicalize ${EPREFIX}) > local rf=${fn} > # in case we deal with a symlink, make sure we don't replace it > # with a real file (sed -i does that) > if [[ -L ${fn} ]] ; then > rf=$(readlink ${fn}) > [[ ${rf} != /* ]] && rf=${fn%/*}/${rf} >+ # ignore symlinks pointing to outside prefix >+ # as seen in sys-devel/native-cctools >+ [[ ${rf} != ${EPREFIX}/* && ${rf} != ${eprefix}/* ]] && continue > fi >- # line[0] can be an absolutised path, bug #342929 >- local eprefix=$(canonicalize ${EPREFIX}) > # does the shebang start with ${EPREFIX}, and does it exist? > if [[ ${line[0]} == ${EPREFIX}/* || ${line[0]} == ${eprefix}/* ]] ; then > if [[ ! -e ${ROOT%/}${line[0]} && ! -e ${D%/}${line[0]} ]] ; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282539
: 264183