Commit a58ab963 authored by Christian Heimes's avatar Christian Heimes

Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.

parent aec6285a
......@@ -178,8 +178,8 @@ def samestat(s1, s2):
def ismount(path):
"""Test whether a path is a mount point"""
try:
s1 = os.stat(path)
s2 = os.stat(join(path, '..'))
s1 = os.lstat(path)
s2 = os.lstat(join(path, '..'))
except os.error:
return False # It doesn't exist -- so not a mount point :-)
dev1 = s1.st_dev
......
......@@ -342,6 +342,8 @@ Core and builtins
Library
-------
- Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
- Bug #1687: Fxed plistlib.py restricts <integer> to Python int when writing
- Issue #1700: Regular expression inline flags incorrectly handle certain
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment