ruby/test/socket
shugo ad55d141eb * ext/socket/raddrinfo.c (rsock_unixpath_len, init_unix_addrinfo),
ext/socket/unixsocket.c (unixsock_connect_internal,
  rsock_init_unixsock): calculate the correct address length of
  an abstract socket.  Without this fix, sizeof(struct sockaddr_un)
  is specified as the length of an abstract socket for bind(2) or
  connect(2), so the address of the socket is filled with extra NUL
  characters.  See unix(7) for details.

* ext/socket/lib/socket.rb (unix_server_socket): don't access the
  file system if the platform is Linux and path starts with NUL,
  which means that the socket is an abstract socket.

* test/socket/test_unix.rb: related test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-25 08:15:26 +00:00
..
test_addrinfo.rb Check if there is no error before reconnect [Bug #4387] 2012-10-30 00:40:54 +00:00
test_ancdata.rb * ext/socket/ancdata.c (ancillary_unix_rights): check message type. 2009-02-28 09:29:26 +00:00
test_basicsocket.rb rename tests classes. 2009-02-11 04:17:57 +00:00
test_nonblock.rb * test/socket/test_socket.rb (test_udp_server): rescue Errno::ENOSYS 2010-06-14 13:46:06 +00:00
test_socket.rb Revert "Darwin 12 (OS X Mountain Lion) also has Bug #6692" 2012-09-26 04:03:26 +00:00
test_sockopt.rb add tests. 2009-02-11 04:31:19 +00:00
test_tcp.rb rename tests classes. 2009-02-11 04:17:57 +00:00
test_udp.rb rename tests classes. 2009-02-11 04:17:57 +00:00
test_unix.rb * ext/socket/raddrinfo.c (rsock_unixpath_len, init_unix_addrinfo), 2013-01-25 08:15:26 +00:00