mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merge revision(s) r45144: [Backport #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 #9544] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a5b229bebf
commit
61754d1a6a
3 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
Wed Jul 23 22:43:50 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* 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 #9544]
|
||||
|
||||
Wed Jul 23 22:24:26 2014 CHIKANAGA Tomoyuki <nagachika@ruby-lang.org>
|
||||
|
||||
* test/openssl/test_x509cert.rb: split assertions into algorithms.
|
||||
|
|
|
@ -653,7 +653,9 @@ class Resolv
|
|||
begin
|
||||
port = rangerand(1024..65535)
|
||||
udpsock.bind(bind_host, port)
|
||||
rescue Errno::EADDRINUSE, Errno::EACCES
|
||||
rescue Errno::EADDRINUSE, # POSIX
|
||||
Errno::EACCES, # SunOS: See PRIV_SYS_NFS in privileges(5)
|
||||
Errno::EPERM # FreeBSD: security.mac.portacl.port_high is configurable. See mac_portacl(4).
|
||||
retry
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#define RUBY_VERSION "2.1.2"
|
||||
#define RUBY_RELEASE_DATE "2014-07-23"
|
||||
#define RUBY_PATCHLEVEL 177
|
||||
#define RUBY_PATCHLEVEL 178
|
||||
|
||||
#define RUBY_RELEASE_YEAR 2014
|
||||
#define RUBY_RELEASE_MONTH 7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue