Allow strings as input for Process.uid=
On my unix system I often have a "debug" user account, belonging to the "debug" group.
You can find out the effective uid and you can change it via =.
Process.euid = 522
That works. Today I tried to do this though:
Process.euid = "debug"
It does not work because .euid= wants a string.
Would it not be better to be more flexible than that? Internally it
could be converted into a number anyway as /etc/passwd can be
read. And if it can not be converted, an exception could be raised.
At least for me that would be quite convenient, no idea if this has
merit for others, but then again it is just a proposal. :)
Thank you for reading.
- process.c (obj2uid, obj2gid): allow strings as input user/group id. [Feature #5610]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
#6 Updated by nobu (Nobuyoshi Nakada) about 6 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100