summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-04 13:22:36 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-04 13:22:36 (GMT)
commit12f03ccece461264acbddea8c9db9a85614483be (patch)
tree28baadd271097439ecbbe574b50177356487b875 /Lib/posixpath.py
parent3b4a5bd9dae5504e66da4157c646f222c61e1daa (diff)
downloadcpython-12f03ccece461264acbddea8c9db9a85614483be.zip
cpython-12f03ccece461264acbddea8c9db9a85614483be.tar.gz
cpython-12f03ccece461264acbddea8c9db9a85614483be.tar.bz2
Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index b396f0a..515b0ae 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -245,8 +245,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