-
Notifications
You must be signed in to change notification settings - Fork 186
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
Adjust Process.egid=
to accept String
s
#2669
Conversation
Process.egid=
to accept String
sProcess.egid=
to accept String
s
Could you also add a changelog entry? (see CONTRIBUTING.md) |
spec/ruby/core/process/egid_spec.rb
Outdated
as_superuser do | ||
context "when ran by a superuser" do | ||
it "sets the effective group id for the current process if run by a superuser" do | ||
Process.egid = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems way too dangerous as a side-effect, could you restore the original egid
in ensure
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do it, to avoid another feedback cycle.
Thank you for the PR, I'll submit it to the merge queue now. |
dfc920f
to
fe1a8ef
Compare
Process.egid=
to accept strings (Process.euid=/Process.egid= don't accept strings #2615, @ngtban)