[issue14238] python shouldn't need username in passwd database
report at bugs.python.org
Mon Mar 12 22:50:51 CET 2012
Éric Araujo <merwok at netwok.org> added the comment:
Thanks you for your contribution! I hope you’ll find fun bugs to make patches for.
Your patch looks too simplistic; in the discussion, we agreed that if the lookup fails, the site module should not add user site directories (see http://docs.python.org/library/site#site.USER_SITE or PEP 370), and your patch does not seem to do that.
Moreover, this bug has repercussions on the sysconfig module (see my previous message), which needs edits too.
BTW, I don’t know how we can test a patch for this bug; arekm, how do you run Python from a UID without passwd entry?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list