mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Added check for executable permissions to ImageShow
This commit is contained in:
parent
12bd44a6fb
commit
9f2deda929
|
@ -139,8 +139,7 @@ else:
|
|||
return None
|
||||
for dirname in path.split(os.pathsep):
|
||||
filename = os.path.join(dirname, executable)
|
||||
if os.path.isfile(filename):
|
||||
# FIXME: make sure it's executable
|
||||
if os.path.isfile(filename) and os.access(filename, os.X_OK):
|
||||
return filename
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user