Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 416808 Details for
Bug 565630
sys-apps/sandbox-2.8+ broken on Sparc64 ("Bus error" in canonicalize_filename_mode())
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sanbox sparc fastfix
libsandbox-sparc.patch (text/plain), 894 bytes, created by
Denis Kaganovich
on 2015-11-12 19:19:12 UTC
(
hide
)
Description:
sanbox sparc fastfix
Filename:
MIME Type:
Creator:
Denis Kaganovich
Created:
2015-11-12 19:19:12 UTC
Size:
894 bytes
patch
obsolete
>--- a/libsandbox/libsandbox.c 2015-09-20 10:54:55.000000000 +0300 >+++ b/libsandbox/libsandbox.c 2015-11-12 21:17:25.000000000 +0300 >@@ -260,6 +260,14 @@ static char *resolve_path(const char *pa > * can come up in cases like: > * /dev/stderr -> fd/2 -> /proc/self/fd/2 -> /removed/file (deleted) > */ >+#if defined(__sparc__) >+ /* canonicalize_filename_mode() do "Bus error", keep pre-540828 here */ >+ if (!ret && !strncmp(filtered_path, "/proc/", 6)) { >+ char *base = strrchr(filtered_path, '/'); >+ if (base && strchr(base, ':')) >+ ret = filtered_path; >+ } >+#else > if (!ret && errno == ENOENT) { > ret = canonicalize_filename_mode(path, CAN_ALL_BUT_LAST); > if (ret) { >@@ -267,7 +275,7 @@ static char *resolve_path(const char *pa > filtered_path = ret; > } > } >- >+#endif > if (!ret) { > char tmp_str1[SB_PATH_MAX]; > snprintf(tmp_str1, SB_PATH_MAX, "%s", path);
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 565630
: 416808