[ python-Bugs-1213894 ] os.path.realpath() cannot handle symlinks
SourceForge.net
noreply at sourceforge.net
Fri Jun 3 02:33:46 CEST 2005
Bugs item #1213894, was opened at 2005-06-02 17:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1213894&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Ilya Sandler (isandler)
Assigned to: Nobody/Anonymous (nobody)
Summary: os.path.realpath() cannot handle symlinks
Initial Comment:
To reproduce:
Create a link, say to /tmp:
bagira:~/python> ls -l xxx
lrwxrwxrwx 1 ilya ilya 4 2005-06-02
17:09 xxx -> /tmp/
And now:
bagira:~/python> python2.4
Python 2.4.1 (#2, May 5 2005, 11:32:06)
[GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2
Type "help", "copyright", "credits" or "license" for
more
information.
>>> import os.path
>>> os.path.realpath("xxx")
'/home/ilya/python/xxx'
I'd expect realpath() to return "/tmp"
Note: This bug was reported earlier (e.g bug 990669)
but it was closed as fixed
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1213894&group_id=5470
More information about the Python-bugs-list
mailing list