]> granicus.if.org Git - python/commitdiff
Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
authorChristian Heimes <christian@cheimes.de>
Fri, 4 Jan 2008 13:21:07 +0000 (13:21 +0000)
committerChristian Heimes <christian@cheimes.de>
Fri, 4 Jan 2008 13:21:07 +0000 (13:21 +0000)
Lib/posixpath.py
Misc/NEWS

index 6d4a9e2111bd5d4631bc081f215266daa34a3745..ee763ad25457cc06ee0db08187221edcbefac2c0 100644 (file)
@@ -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
index 66a60d75feb65794af8a1b2cd4f6ec5d84f51c26..8100c77199984b309562866ed3da1b8448d4701d 100644 (file)
--- 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 <integer> to Python int when writing
 
 - Issue #1700: Regular expression inline flags incorrectly handle certain