http://bugs.gentoo.org/show_bug.cgi?id=68928
The portage_exec.spawn() function skips the path_lookup() function when
os.access(myc, os.X_OK) returns true. Before path_lookup() is skipped, we need
to do an additional check to verify that the command path is absolute.
Zac
Index: portage-2.0.51.22/pym/portage_exec.py
===================================================================
--- portage-2.0.51.22.orig/pym/portage_exec.py
+++ portage-2.0.51.22/pym/portage_exec.py
@@ -70,7 +70,7 @@ def spawn(mycommand,env={},opt_name=None
if type(mycommand)==types.StringType:
mycommand=mycommand.split()
myc = mycommand[0]
- if not os.access(myc, os.X_OK):
+ if not os.path.isabs(myc) or not os.access(myc, os.X_OK):
if not path_lookup:
return None
myc = find_binary(myc)