Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 229007 Details for
Bug 315727
Portage fails to report 'snippet of code' when package dies in pkg_setup() and the repo path contains special chars
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix BASH_SOURCE quoting in call stack
0004-Quote-paths-for-call-stack-display.patch (text/plain), 990 bytes, created by
Michał Górny
on 2010-04-24 14:51:02 UTC
(
hide
)
Description:
Patch to fix BASH_SOURCE quoting in call stack
Filename:
MIME Type:
Creator:
Michał Górny
Created:
2010-04-24 14:51:02 UTC
Size:
990 bytes
patch
obsolete
>From 7b154d16e965f687887d6615bb5b15903aa9585f Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <gentoo@mgorny.alt.pl> >Date: Sat, 24 Apr 2010 10:57:43 +0200 >Subject: [PATCH 4/4] Quote paths for 'call stack' display. > >Added missing quoting around the path passed to basename when printing >'Call stack' on die(). This should fix the issue where basename syntax >error was displayed instead of the source file name. >--- > bin/isolated-functions.sh | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh >index 2acb3b3..3395641 100644 >--- a/bin/isolated-functions.sh >+++ b/bin/isolated-functions.sh >@@ -43,7 +43,7 @@ dump_trace() { > eerror "Call stack:" > while (( n > ${strip} )) ; do > funcname=${FUNCNAME[${n} - 1]} >- sourcefile=$(basename ${BASH_SOURCE[${n}]}) >+ sourcefile=$(basename "${BASH_SOURCE[${n}]}") > lineno=${BASH_LINENO[${n} - 1]} > # Display function arguments > args= >-- >1.7.0.4 >
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 315727
:
228137
|
228925
| 229007