Mark crashpad_handler binary as executable on download

Bug: none
Change-Id: If57b662eea0ff99ecbf6cbc3c57a685e77edaad1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2931812
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
This commit is contained in:
Philip Pfaffe
2021-06-02 11:36:24 +00:00
committed by Devtools-frontend LUCI CQ
parent 81d6d2fd43
commit 3ae8373dda
+5
View File
@@ -66,6 +66,11 @@ def download_and_extract(options):
# Fix permissions. Do this recursively is necessary for MacOS bundles.
if os.path.isfile(EXPECTED_BINARY):
os.chmod(EXPECTED_BINARY, 0o555)
# On linux, the crashpad_handler binary needs the +x bit, too.
crashpad = os.path.join(os.path.dirname(EXPECTED_BINARY),
'crashpad_handler')
if os.path.isfile(crashpad):
os.chmod(crashpad, 0o555)
else:
for root, dirs, files in os.walk(EXPECTED_BINARY):
for f in files: