зеркало из https://github.com/github/ruby.git
* ext/socket/option.c (sockopt_inspect): add ifdef guard for
LOCAL_PEERCRED. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f11d2b55f7
Коммит
d0454a211e
|
@ -1,3 +1,8 @@
|
|||
Mon Feb 9 00:44:45 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/option.c (sockopt_inspect): add ifdef guard for
|
||||
LOCAL_PEERCRED.
|
||||
|
||||
Mon Feb 9 00:37:06 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/option.c (inspect_local_peercred): cr_uid is a effective
|
||||
|
|
|
@ -326,10 +326,12 @@ sockopt_inspect(VALUE self)
|
|||
}
|
||||
|
||||
if (family == AF_UNIX && level == 0) {
|
||||
# if defined(LOCAL_PEERCRED)
|
||||
if (optname == LOCAL_PEERCRED) {
|
||||
if (inspect_local_peercred(level, optname, data, ret) == -1) goto dump;
|
||||
goto finish;
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
||||
switch (level) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче