Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 102671 Details for
Bug 156146
app-portage/euses-2.5.2: only prints "Do you Gentoo?" - problems in getportdir
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
euses-2.5.2-getportdir.patch
euses-2.5.2-getportdir.patch (text/plain), 617 bytes, created by
Martin von Gagern
on 2006-11-24 10:48:35 UTC
(
hide
)
Description:
euses-2.5.2-getportdir.patch
Filename:
MIME Type:
Creator:
Martin von Gagern
Created:
2006-11-24 10:48:35 UTC
Size:
617 bytes
patch
obsolete
>--- euses-2.5.2/euses.c 2006-11-24 19:18:07.000000000 +0100 >+++ work/euses.c 2006-11-24 19:21:28.000000000 +0100 >@@ -128,10 +128,13 @@ > FILE *fd; > > /* Check if PORTDIR is set in the environment */ >- snprintf(portdir, FILENAME_MAX, "%s", getenv("PORTDIR")); >+ char *envportdir = getenv("PORTDIR"); >+ if (envportdir != NULL) { >+ snprintf(portdir, FILENAME_MAX, "%s", envportdir); >+ } > > /* or load it from make.{globals,conf} */ >- if (strlen(portdir) == 0) { >+ else { > /* Open a pipe to sh */ > fd = popen("source " SYSCONFDIR "/make.globals;" "source " > SYSCONFDIR "/make.conf" ";" "echo -n ${PORTDIR}",
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 156146
: 102671