-
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
Process.euid=/Process.egid= don't accept strings #2615
Comments
Seems an ancient feature. But it's never been properly specified - see here it specifies that it raises an error if not given an integer, but then also specifies that you can't set it to Implementation would go here. truffleruby/src/main/ruby/truffleruby/core/process.rb Lines 404 to 430 in 0e73061
Should be relatively easy to fix, could be a good beginner project. First thing would be specifications and then an implementation. |
Converting the user name to a uid can be done with truffleruby/lib/mri/fileutils.rb Lines 1110 to 1111 in 0e73061
That means it needs |
Note that |
Looks like the issue is fixed and the PR is merged. |
Ruby 3.0.2 allows a string for Process.euid=, and will (I assume) do a user lookup in that case:
But using Truffleruby 22.0.0.2:
The text was updated successfully, but these errors were encountered: