mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/option.c (inspect_peercred): struct ucred contains
effective uid/gid. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0fe7022c0b
commit
64f12a46d5
3 changed files with 8 additions and 3 deletions
|
@ -306,8 +306,8 @@ class TestUNIXSocket < Test::Unit::TestCase
|
|||
cred = s.getsockopt(:SOCKET, :PEERCRED)
|
||||
inspect = cred.inspect
|
||||
assert_match(/ pid=#{$$} /, inspect)
|
||||
assert_match(/ uid=#{Process.uid} /, inspect)
|
||||
assert_match(/ gid=#{Process.gid} /, inspect)
|
||||
assert_match(/ euid=#{Process.euid} /, inspect)
|
||||
assert_match(/ egid=#{Process.egid} /, inspect)
|
||||
assert_match(/ \(ucred\)/, inspect)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue