#5551: symbolic links never can be mount points. Fixes the fix for #1713.

This commit is contained in:
Georg Brandl 2010-08-01 15:30:56 +00:00
parent ea47eaa395
commit e6c5950af0
2 changed files with 6 additions and 0 deletions

View file

@ -200,6 +200,9 @@ def samestat(s1, s2):
def ismount(path):
"""Test whether a path is a mount point"""
if islink(path):
# A symlink can never be a mount point
return False
try:
s1 = os.lstat(path)
if isinstance(path, bytes):