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

This commit is contained in:
Christian Heimes 2008-01-04 13:21:07 +00:00
parent 737c73f96f
commit 0687561c94
2 changed files with 4 additions and 2 deletions

View File

@ -178,8 +178,8 @@ def samestat(s1, s2):
def ismount(path): def ismount(path):
"""Test whether a path is a mount point""" """Test whether a path is a mount point"""
try: try:
s1 = os.stat(path) s1 = os.lstat(path)
s2 = os.stat(join(path, '..')) s2 = os.lstat(join(path, '..'))
except os.error: except os.error:
return False # It doesn't exist -- so not a mount point :-) return False # It doesn't exist -- so not a mount point :-)
dev1 = s1.st_dev dev1 = s1.st_dev

View File

@ -342,6 +342,8 @@ Core and builtins
Library 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 - Bug #1687: Fxed plistlib.py restricts <integer> to Python int when writing
- Issue #1700: Regular expression inline flags incorrectly handle certain - Issue #1700: Regular expression inline flags incorrectly handle certain