From: Christian Heimes Date: Fri, 4 Jan 2008 13:22:36 +0000 (+0000) Subject: Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint. X-Git-Tag: v2.5.2c1~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12f03ccece461264acbddea8c9db9a85614483be;p=thirdparty%2FPython%2Fcpython.git Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint. --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index b396f0ace5ec..515b0ae0d0b9 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 diff --git a/Misc/NEWS b/Misc/NEWS index 67af91e80284..167bedc5d44e 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -53,6 +53,8 @@ Core and builtins Library ------- +- Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint. + - Issue #1700: Regular expression inline flags incorrectly handle certain unicode characters.