Skip to content

Update getuid root check #47

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

Merged
merged 1 commit into from
May 13, 2024
Merged

Update getuid root check #47

merged 1 commit into from
May 13, 2024

Conversation

loshz
Copy link
Contributor

@loshz loshz commented May 13, 2024

Small change to use the inbuilt is_root() method instead of extracting it manually from getuid().

https://docs.rs/nix/latest/nix/unistd/struct.Uid.html#method.current

Signed-off-by: Dan Bond <danbond@protonmail.com>
@jfernandez jfernandez self-requested a review May 13, 2024 18:55
@jfernandez
Copy link
Collaborator

Thank you!

@jfernandez jfernandez merged commit e444e64 into Netflix:main May 13, 2024
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.

2 participants