summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-19 09:34:19 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-19 09:34:19 +0000
commit48a47394e692bf8a54cb2455b197e9c1c3d92e06 (patch)
treeba8cd42a5cb44be35a9ba2a6c83aba974b026d00
parent854c77fa6a05f5a8c67b2d362f02b9d826417e7e (diff)
downloadruby-48a47394e692bf8a54cb2455b197e9c1c3d92e06.tar.gz
* ext/socket/socket.c (unix_peeraddr): wrong syscall name in error
message for #peeraddr. a patch from Sam Roberts <sroberts at uniserve.com>. [ruby-core:10366] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@11783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ext/socket/socket.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5940ebccb2..cda9fb0354 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Feb 19 18:33:30 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/socket/socket.c (unix_peeraddr): wrong syscall name in error
+ message for #peeraddr. a patch from Sam Roberts
+ <sroberts at uniserve.com>. [ruby-core:10366]
+
Mon Feb 19 18:27:42 2007 Akinori MUSHA <knu@iDaemons.org>
* configure.in, defines.h, eval.c (rb_feature_p, rb_provided,
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 24904530b6..b3966872ea 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -2233,7 +2233,7 @@ unix_peeraddr(sock)
GetOpenFile(sock, fptr);
if (getpeername(fileno(fptr->f), (struct sockaddr*)&addr, &len) < 0)
- rb_sys_fail("getsockname(2)");
+ rb_sys_fail("getpeername(2)");
return unixaddr(&addr, len);
}
#endif