summaryrefslogtreecommitdiffstats
path: root/ext/socket
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 17:04:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-08 17:04:40 +0000
commit9de9fa642ccd424a9a6f7fb8cd51fc35af1f0a1b (patch)
tree767fc8050eeb9f28a6807607f19388bf202e5c95 /ext/socket
parent575468518b9120e92b7419530a61d4dcb5811c87 (diff)
downloadruby-9de9fa642ccd424a9a6f7fb8cd51fc35af1f0a1b.tar.gz
ruby-9de9fa642ccd424a9a6f7fb8cd51fc35af1f0a1b.tar.xz
ruby-9de9fa642ccd424a9a6f7fb8cd51fc35af1f0a1b.zip
* ext/socket/option.c (inspect_peercred): struct ucred contains
effective uid/gid. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c
index 980acda85..36750ad6c 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;
}