Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 200599 Details for
Bug 280780
app-admin/eselect-python-20090804: fix segfault when PATH unset
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for segfault
python.c-PATH-unset.patch (text/plain), 534 bytes, created by
Jonathan Callen (RETIRED)
on 2009-08-08 16:29:43 UTC
(
hide
)
Description:
fix for segfault
Filename:
MIME Type:
Creator:
Jonathan Callen (RETIRED)
Created:
2009-08-08 16:29:43 UTC
Size:
534 bytes
patch
obsolete
>--- python.c-r1 2009-08-08 12:13:27.903070452 -0400 >+++ python.c 2009-08-08 12:20:36.693138752 -0400 >@@ -33,7 +33,15 @@ const char* find_path(const char* exe) > { > return strndup(exe, last_slash - exe); > } >- char* path = strdup(getenv("PATH")); >+ const char* PATH = getenv("PATH"); >+ if (!PATH) >+ { >+ /* If PATH is unset, then it defaults to ":/bin:/usr/bin", per >+ * execvp(3). >+ */ >+ PATH = ":/bin:/usr/bin" >+ } >+ char* path = strdup(PATH); > char* state; > const char* token = strtok_r(path, ":", &state); > while (token)
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 280780
: 200599