Skip to content

Commit e7edc10

Browse files
committed
merge revision(s) r45144: [Backport ruby#9544]
* lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which security.mac.portacl.port_high is changed. See mac_portacl(4) for details. Reported by Jakub Szafranski. [ruby-core:60917] [Bug ruby#9544] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent f30e047 commit e7edc10

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
Wed Jul 23 22:43:50 2014 Tanaka Akira <[email protected]>
2+
3+
* lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which
4+
security.mac.portacl.port_high is changed.
5+
See mac_portacl(4) for details.
6+
Reported by Jakub Szafranski. [ruby-core:60917] [Bug #9544]
7+
18
Wed Jul 23 22:24:26 2014 CHIKANAGA Tomoyuki <[email protected]>
29

310
* test/openssl/test_x509cert.rb: split assertions into algorithms.

lib/resolv.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,9 @@ def self.bind_random_port(udpsock, bind_host="0.0.0.0") # :nodoc:
653653
begin
654654
port = rangerand(1024..65535)
655655
udpsock.bind(bind_host, port)
656-
rescue Errno::EADDRINUSE, Errno::EACCES
656+
rescue Errno::EADDRINUSE, # POSIX
657+
Errno::EACCES, # SunOS: See PRIV_SYS_NFS in privileges(5)
658+
Errno::EPERM # FreeBSD: security.mac.portacl.port_high is configurable. See mac_portacl(4).
657659
retry
658660
end
659661
end

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.1.2"
22
#define RUBY_RELEASE_DATE "2014-07-23"
3-
#define RUBY_PATCHLEVEL 177
3+
#define RUBY_PATCHLEVEL 178
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 7

0 commit comments

Comments
 (0)