#2466: ismount now recognizes mount points user can't access.

Patch by Robin Roth, reviewed by Serhiy Storchaka, comment wording
tweaked by me.
This commit is contained in:
R David Murray 2016-08-18 21:27:48 -04:00
parent eec9331b20
commit 750018b91a
4 changed files with 27 additions and 2 deletions

View file

@ -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: