Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 138096 Details for
Bug 201771
sys-apps/portage - unpack() should reject absolute paths + misleading error message
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
suggested patch for unpack()
unpack.patch (text/plain), 805 bytes, created by
Fabian Groffen
on 2007-12-09 14:58:58 UTC
(
hide
)
Description:
suggested patch for unpack()
Filename:
MIME Type:
Creator:
Fabian Groffen
Created:
2007-12-09 14:58:58 UTC
Size:
805 bytes
patch
obsolete
>Index: ebuild.sh >=================================================================== >--- ebuild.sh (revision 8877) >+++ ebuild.sh (working copy) >@@ -313,15 +313,16 @@ > y=${x%.*} > y=${y##*.} > >- myfail="${x} does not exist" >- if [ "${x:0:2}" = "./" ] ; then >+ if [[ ${x} == "./"* ]] ; then > srcdir="" >+ elif [[ ${x} == ${DISTDIR}* ]] && \ >+ die "Arguments to unpack() should not begin with \${DISTDIR}." >+ elif [[ ${x} == "/"* ]] ; then >+ die "Arguments to unpack() should not be absolute" > else > srcdir="${DISTDIR}/" > fi >- [[ ${x} == ${DISTDIR}* ]] && \ >- die "Arguments to unpack() should not begin with \${DISTDIR}." >- [ ! -s "${srcdir}${x}" ] && die "$myfail" >+ [[ ! -s ${srcdir}${x} ]] && die "${x} does not exist" > > myfail="failure unpacking ${x}" > case "${x##*.}" in
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 201771
: 138096