From 0687561c940064e41ef1f89dc63aa6218161d2b9 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 4 Jan 2008 13:21:07 +0000 Subject: [PATCH] Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint. --- Lib/posixpath.py | 4 ++-- Misc/NEWS | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 6d4a9e2111b..ee763ad2545 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 diff --git a/Misc/NEWS b/Misc/NEWS index 66a60d75feb..8100c771999 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -342,6 +342,8 @@ Core and builtins Library ------- +- Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint. + - Bug #1687: Fxed plistlib.py restricts to Python int when writing - Issue #1700: Regular expression inline flags incorrectly handle certain