Mailing List Archive

python/dist/src/Lib posixpath.py,1.46,1.46.10.1
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv11198

Modified Files:
Tag: release22-maint
posixpath.py
Log Message:
Backport 1.52:

SF # 555779, import user doesn't work with CGIs



Index: posixpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/posixpath.py,v
retrieving revision 1.46
retrieving revision 1.46.10.1
diff -C2 -d -r1.46 -r1.46.10.1
*** posixpath.py 10 Oct 2001 04:16:20 -0000 1.46
--- posixpath.py 6 Oct 2002 22:11:13 -0000 1.46.10.1
***************
*** 307,312 ****
if i == 1:
if not os.environ.has_key('HOME'):
! return path
! userhome = os.environ['HOME']
else:
import pwd
--- 307,314 ----
if i == 1:
if not os.environ.has_key('HOME'):
! import pwd
! userhome = pwd.getpwuid(os.getuid())[5]
! else:
! userhome = os.environ['HOME']
else:
import pwd