mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/resolv.rb (bind_random_port): Rescue EACCES for SunOS.
bind() on SunOS for port 2049 (nfs) and 4045 (lockd) causes EACCES with unprivileged process. cf. PRIV_SYS_NFS in privileges(5) [ruby-core:48064] [Bug #7183] reported by Frank Meier. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b2a1339f24
commit
dc5b184b1f
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
Thu Apr 4 23:45:13 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/resolv.rb (bind_random_port): Rescue EACCES for SunOS.
|
||||
bind() on SunOS for port 2049 (nfs) and 4045 (lockd) causes
|
||||
EACCES with unprivileged process. cf. PRIV_SYS_NFS in privileges(5)
|
||||
[ruby-core:48064] [Bug #7183] reported by Frank Meier.
|
||||
|
||||
Thu Apr 4 23:24:45 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/extconf.rb: Remove condition for bcc.
|
||||
|
|
|
@ -645,7 +645,7 @@ class Resolv
|
|||
begin
|
||||
port = rangerand(1024..65535)
|
||||
udpsock.bind(bind_host, port)
|
||||
rescue Errno::EADDRINUSE
|
||||
rescue Errno::EADDRINUSE, Errno::EACCES
|
||||
retry
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue