mirror of
https://github.com/python/cpython.git
synced 2025-11-10 10:32:04 +00:00
#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:
parent
eec9331b20
commit
750018b91a
4 changed files with 27 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue