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 archive assemblies (tar.gz and zip) to have fixed file/dir modes. #5459

Merged
merged 2 commits into from
Oct 19, 2020

Conversation

joakime
Copy link
Contributor

@joakime joakime commented Oct 17, 2020

  • Not taking the modes from whatever defaults the filesystem
    that ran the build is currently on.

Signed-off-by: Joakim Erdfelt joakim.erdfelt@gmail.com

+ Not taking the modes from whatever defaults the filesystem
  that ran the build is currently on.

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
@joakime joakime self-assigned this Oct 17, 2020
@joakime joakime requested review from gregw and sbordet October 18, 2020 10:56
Comment on lines 18 to 19
<fileMode>0444</fileMode>
<directoryMode>0755</directoryMode>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the following would be better:

Suggested change
<fileMode>0444</fileMode>
<directoryMode>0755</directoryMode>
<fileMode>0400</fileMode>
<directoryMode>0700</directoryMode>

We should not be granting any permissions to groups or others

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also should we set 0800 for the files in bin?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good points.
I was rather happy that these modes I started with had no issue in the /test-distribution/ already.
Wonder if we should expand those tests to use the bin/jetty.sh too (in some regard)?

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
@joakime joakime requested a review from gregw October 19, 2020 16:54
@joakime
Copy link
Contributor Author

joakime commented Oct 19, 2020

@gregw can I get a re-review? the modes have been updated.

@joakime joakime merged commit 6bff0d2 into jetty-10.0.x Oct 19, 2020
@joakime joakime deleted the jetty-10.0.x-fix-jetty-home-assembly-modes branch October 22, 2020 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants