[#6728] Ruby 1.3.3-990507 — matz <matz@...>

Ruby 1.3.3-990507 is out, check out:

34 messages 1999/05/07
[#6731] Re: Ruby 1.3.3-990507 — Katsuyuki Komatsu <komatsu@...> 1999/05/07

小松です。

[#6779] Re: private inner class (Re: Re: class def in class def) — Koji Oda <oda@...1.qnes.nec.co.jp>

小田@QNES です。

13 messages 1999/05/13

[#6789] Ruby 1.3.3-990513 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.3-990513 is out, check out:

59 messages 1999/05/13
[#6811] Re: Ruby 1.3.3-990513 — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/05/14

小田@QNES です。

[#6814] Re: Ruby 1.3.3-990513 — matz@... (Yukihiro Matsumoto) 1999/05/15

まつもと ゆきひろです

[#6821] Re: Ruby 1.3.3-990513 — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/05/16

小田@QNES です。

[#6790] Re: Ruby 1.3.3-990513 — Katsuyuki Komatsu <komatsu@...> 1999/05/13

小松です。

[#6891] Ruby 1.3.3-990518 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.3-990518 is out, check out:

19 messages 1999/05/18

[#6919] ext/socket/getaddrinfo.c tiny fix — Jun-ichiro itojun Hagino <itojun@...>

ext/socket/getaddrinfo.cに以下のpatchをおねがいします。

22 messages 1999/05/20
[#6921] Re: ext/socket/getaddrinfo.c tiny fix — Jun-ichiro itojun Hagino <itojun@...> 1999/05/20

[#7034] Ruby 1.3.4-990531 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.4-990531 is out, check out:

25 messages 1999/05/31

[ruby-dev:6919] ext/socket/getaddrinfo.c tiny fix

From: Jun-ichiro itojun Hagino <itojun@...>
Date: 1999-05-20 04:06:56 UTC
List: ruby-dev #6919
	ext/socket/getaddrinfo.cに以下のpatchをおねがいします。
	IPv4 only kernelの上でgetaddrinfo(NULL, "ftp", &hints, &res)
	(hints.ai_flags = AI_PASSIVE)としたときにAF_INET6のアドレスが
	返るのをふせぎます。

itojun


? Makefile
Index: getaddrinfo.c
===================================================================
RCS file: /home/cvs/ruby/ext/socket/Attic/getaddrinfo.c,v
retrieving revision 1.1.2.5
diff -c -r1.1.2.5 getaddrinfo.c
*** getaddrinfo.c	1999/05/10 08:22:49	1.1.2.5
--- getaddrinfo.c	1999/05/20 03:43:44
***************
*** 394,405 ****
--- 394,415 ----
  	 */
  	if (hostname == NULL) {
  		struct afd *afd;
+ 		int s;
  
  		for (afd = &afdl[0]; afd->a_af; afd++) {
  			if (!(pai->ai_family == PF_UNSPEC
  			   || pai->ai_family == afd->a_af)) {
  				continue;
  			}
+ 
+ 			/*
+ 			 * filter out AFs that are not supported by the kernel
+ 			 * XXX errno?
+ 			 */
+ 			s = socket(afd->a_af, SOCK_DGRAM, 0);
+ 			if (s < 0)
+ 				continue;
+ 			close(s);
  
  			if (pai->ai_flags & AI_PASSIVE) {
  				GET_AI(cur->ai_next, afd, afd->a_addrany, port);

In This Thread

Prev Next