Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.

fix: correctly set permissions on downloaded binary#472

Merged
Tbaut merged 2 commits intomasterfrom
am-fix-dl
Mar 22, 2019
Merged

fix: correctly set permissions on downloaded binary#472
Tbaut merged 2 commits intomasterfrom
am-fix-dl

Conversation

@amaury1093
Copy link
Collaborator

@amaury1093 amaury1093 commented Mar 22, 2019

Thanks to @fevo1971 for finding this!

https://gitlab.parity.io/parity/fether/-/jobs/132028
the permission of the downloaded binary was:

--wxrw--wt  1 administrator  staff  46128528 Mar 21 18:13 parity

We need to use octals to make it work cross-platform: https://nodejs.org/api/fs.html#fs_fs_chmod_path_mode_callback

@amaury1093 amaury1093 requested a review from axelchalon March 22, 2019 13:43
@Tbaut Tbaut merged commit 489e538 into master Mar 22, 2019
@Tbaut Tbaut deleted the am-fix-dl branch March 22, 2019 13:53
@axelchalon
Copy link
Contributor

Nice catch! meant to use '755' as string which should have worked also

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants