diff options
author | Christian Heimes <christian@cheimes.de> | 2008-01-04 13:21:07 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-01-04 13:21:07 (GMT) |
commit | 0687561c940064e41ef1f89dc63aa6218161d2b9 (patch) | |
tree | 6d1bdc2dddf18d697f8cd9de97886b1e33909c36 /Lib/posixpath.py | |
parent | 737c73f96ff52cda4b433d25f887525442b7b430 (diff) | |
download | cpython-0687561c940064e41ef1f89dc63aa6218161d2b9.zip cpython-0687561c940064e41ef1f89dc63aa6218161d2b9.tar.gz cpython-0687561c940064e41ef1f89dc63aa6218161d2b9.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.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 6d4a9e2..ee763ad 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -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 |