Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove executable bit from default file mode #14497

Merged
merged 3 commits into from
Jul 18, 2023
Merged

fix: Remove executable bit from default file mode #14497

merged 3 commits into from
Jul 18, 2023

Conversation

ramikg
Copy link
Contributor

@ramikg ramikg commented Jul 13, 2023

Untgz unnecessarily calls os.OpenFile with a file mode which has all executable bits set.
This PR removes the executable bits.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • The title of the PR conforms to the Toolchain Guide
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).
  • My new feature complies with the feature status guidelines.
  • I have added a brief description of why this PR is necessary and/or what this PR solves.

@ramikg ramikg changed the title Remove executable bit from default file mode fix: Remove executable bit from default file mode Jul 13, 2023
Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>
@crenshaw-dev
Copy link
Collaborator

I like this change, but it is a departure from the default in 2.7, which is "all files are executable.

I'm in favor of merging this, as long as there's a note in the 2.7-2.8 release docs explaining the change.

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>
Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>
@ramikg
Copy link
Contributor Author

ramikg commented Jul 13, 2023

Thank you, I've added a note.

@crenshaw-dev
Copy link
Collaborator

/cherry-pick release-2.8

@crenshaw-dev crenshaw-dev merged commit dd800ec into argoproj:master Jul 18, 2023
24 checks passed
gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Jul 18, 2023
* Fix file/directory opening mode

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

* Fix TestUntgz/preserves_file_mode

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

* Mention file mode fix in 2.7-2.8 release docs

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

---------

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>
crenshaw-dev pushed a commit that referenced this pull request Jul 18, 2023
* Fix file/directory opening mode



* Fix TestUntgz/preserves_file_mode



* Mention file mode fix in 2.7-2.8 release docs



---------

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>
Co-authored-by: Rami <72725910+ramikg@users.noreply.github.com>
yyzxw pushed a commit to yyzxw/argo-cd that referenced this pull request Aug 9, 2023
* Fix file/directory opening mode

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

* Fix TestUntgz/preserves_file_mode

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

* Mention file mode fix in 2.7-2.8 release docs

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

---------

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>
@suzaku suzaku mentioned this pull request Aug 15, 2023
tesla59 pushed a commit to tesla59/argo-cd that referenced this pull request Dec 16, 2023
* Fix file/directory opening mode

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

* Fix TestUntgz/preserves_file_mode

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

* Mention file mode fix in 2.7-2.8 release docs

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>

---------

Signed-off-by: ramikg <72725910+ramikg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants