diff options
author | R David Murray <rdmurray@bitdance.com> | 2016-08-18 21:27:48 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2016-08-18 21:27:48 -0400 |
commit | 750018b91aeb5dfb46dc1e156a8b4e7aefb6d59f (patch) | |
tree | 0a2b261890a8139d6598e8e0b43dc60ae80d0302 /Lib/posixpath.py | |
parent | eec9331b207cf7def6f04156d00a8479d1630dd3 (diff) | |
download | cpython-git-750018b91aeb5dfb46dc1e156a8b4e7aefb6d59f.tar.gz |
#2466: ismount now recognizes mount points user can't access.
Patch by Robin Roth, reviewed by Serhiy Storchaka, comment wording
tweaked by me.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r-- | Lib/posixpath.py | 1 |
1 files changed, 1 insertions, 0 deletions
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: |