diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 17:04:40 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 17:04:40 +0000 |
commit | 64f12a46d591887a716822305dba29dd3da1cf8f (patch) | |
tree | 767fc8050eeb9f28a6807607f19388bf202e5c95 /ext/socket | |
parent | 0fe7022c0b5603582fc96c630e9756ca4b49fe1a (diff) | |
download | ruby-64f12a46d591887a716822305dba29dd3da1cf8f.tar.gz |
* 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
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 980acda85d..36750ad6c0 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -246,7 +246,7 @@ inspect_peercred(int level, int optname, VALUE data, VALUE ret) if (RSTRING_LEN(data) == sizeof(struct ucred)) { struct ucred cred; memcpy(&cred, RSTRING_PTR(data), sizeof(struct ucred)); - rb_str_catf(ret, " pid=%u uid=%u gid=%u", cred.pid, cred.uid, cred.gid); + rb_str_catf(ret, " pid=%u euid=%u egid=%u", cred.pid, cred.uid, cred.gid); rb_str_cat2(ret, " (ucred)"); return 0; } |