diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 15:42:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 15:42:17 +0000 |
commit | a5db07d0c5d1b9e6a3c7cceac550ded204cefaef (patch) | |
tree | 4eb77cfef7ab379247cfc437638ac9fa37451a27 /test/socket | |
parent | 9548a8f9c5eba7ee3667e96f036021be3b9238ba (diff) | |
download | ruby-a5db07d0c5d1b9e6a3c7cceac550ded204cefaef.tar.gz ruby-a5db07d0c5d1b9e6a3c7cceac550ded204cefaef.tar.xz ruby-a5db07d0c5d1b9e6a3c7cceac550ded204cefaef.zip |
* ext/socket/option.c (inspect_local_peercred): cr_uid is a effective
uid, not a real uid.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_unix.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb index 6799e52fd..6b5459473 100644 --- a/test/socket/test_unix.rb +++ b/test/socket/test_unix.rb @@ -321,7 +321,7 @@ class TestUNIXSocket < Test::Unit::TestCase s, = serv.accept cred = s.getsockopt(0, Socket::LOCAL_PEERCRED) inspect = cred.inspect - assert_match(/ uid=#{Process.uid} /, inspect) + assert_match(/ euid=#{Process.euid} /, inspect) assert_match(/ \(xucred\)/, inspect) } end |