Bug 156146 - app-portage/euses-2.5.2: only prints "Do you Gentoo?" - problems in getportdir
|
Bug#:
156146
|
Product: Gentoo Linux
|
Version: 2006.1
|
Platform: All
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: jer@gentoo.org
|
Reported By: Martin.vGagern@gmx.net
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: app-portage/euses-2.5.2: only prints "Do you Gentoo?" - problems in getportdir
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2006-11-24 10:16 0000
|
Whenever I try to use euses to find information about some USE flag, I only get
a single line saying "Do you Gentoo?".
A little ltrace reveals that euses checks PORTDIR and continues with "(null)"
as value for PORTDIR. Looking at the source, the result from getenv is
unconditionally passed to snprintf, and later on only its lengh is checked to
be nonzero. So a nonexistant environment variable becoms a NULL pointer
returned from getenv becomes the string "(null)" becomes euses idea of a valid
PORTDIR.
Sorry, I thought I had already fixed that. Seems I didn't publish the fixed
version yet. 2.5.3 is in the tree with a fix similar to your patch. Thank you
very much for the bug report.