From 750018b91aeb5dfb46dc1e156a8b4e7aefb6d59f Mon Sep 17 00:00:00 2001 From: R David Murray Date: Thu, 18 Aug 2016 21:27:48 -0400 Subject: #2466: ismount now recognizes mount points user can't access. Patch by Robin Roth, reviewed by Serhiy Storchaka, comment wording tweaked by me. --- Lib/posixpath.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/posixpath.py') diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 7bb4d5957b..d9f3f993da 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -193,6 +193,7 @@ def ismount(path): parent = join(path, b'..') else: parent = join(path, '..') + parent = realpath(parent) try: s2 = os.lstat(parent) except OSError: -- cgit v1.2.1