diff options
author | Georg Brandl <georg@python.org> | 2010-08-01 15:30:56 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-08-01 15:30:56 (GMT) |
commit | e6c5950af0337f6d991f98d8b93b24825334e270 (patch) | |
tree | 949bd95bcf54577872f63e78edffd3784234304b /Lib/posixpath.py | |
parent | ea47eaa3955db096bbf3e0204cce8e342d74a8ae (diff) | |
download | cpython-e6c5950af0337f6d991f98d8b93b24825334e270.zip cpython-e6c5950af0337f6d991f98d8b93b24825334e270.tar.gz cpython-e6c5950af0337f6d991f98d8b93b24825334e270.tar.bz2 |
#5551: symbolic links never can be mount points. Fixes the fix for #1713.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r-- | Lib/posixpath.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 667f5c5..e9f4251 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -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): |