mirror of
https://github.com/python/cpython.git
synced 2025-09-24 17:33:29 +00:00
Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
This commit is contained in:
parent
737c73f96f
commit
0687561c94
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue