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

Avoid writable_real? #16955

Merged
merged 1 commit into from
Mar 27, 2024
Merged

Avoid writable_real? #16955

merged 1 commit into from
Mar 27, 2024

Conversation

Bo98
Copy link
Member

@Bo98 Bo98 commented Mar 27, 2024

Checking the real UID for writability is rarely correct, unless you are doing so for security purposes in a root setuid executable (a scenario Homebrew already forbids). All file operations actually operate using the EUID.

Reverts Homebrew/legacy-homebrew#13689 - insufficient information was given in that PR to determine the actual root cause.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Makes sense to me, thanks again @Bo98!

May be worth a rubocop to make sure these don't creep back in.

@MikeMcQuaid MikeMcQuaid merged commit e698c29 into Homebrew:master Mar 27, 2024
32 checks passed
@github-actions github-actions bot added the outdated PR was locked due to age label Apr 27, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants