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 | f11d2b55f745810c6e1de8c0474001bdf8310efe (patch) | |
tree | 4eb77cfef7ab379247cfc437638ac9fa37451a27 /ext/socket | |
parent | 9e457481438cf8b4dbe033b6fbd5ea612c4529c1 (diff) | |
download | ruby-f11d2b55f745810c6e1de8c0474001bdf8310efe.tar.gz |
* ext/socket/option.c (inspect_local_peercred): cr_uid is a effective
uid, not a real uid.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c index c79c1f529f..7bffdf8d6b 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -264,7 +264,7 @@ inspect_local_peercred(int level, int optname, VALUE data, VALUE ret) struct xucred cred; memcpy(&cred, RSTRING_PTR(data), sizeof(struct xucred)); rb_str_catf(ret, " version=%u", cred.cr_version); - rb_str_catf(ret, " uid=%u", cred.cr_uid); + rb_str_catf(ret, " euid=%u", cred.cr_uid); if (cred.cr_ngroups) { int i; char *sep = " groups="; |