Skip to content

Commit

Permalink
merge revision(s) 25311:
Browse files Browse the repository at this point in the history
	* lib/net/ftp.rb (getaddress): rescue exceptions.  [ruby-dev:39451]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@25900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Nov 24, 2009
1 parent 5f10f47 commit 1298533
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Tue Nov 24 16:09:41 2009 Shugo Maeda <shugo@ruby-lang.org>

* lib/net/ftp.rb (getaddress): rescue exceptions. [ruby-dev:39451]

Tue Nov 24 15:51:07 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>

* ext/curses/curses.c: Many functions of module Curses could cause a
Expand Down
4 changes: 2 additions & 2 deletions lib/net/ftp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ def transfercmd(cmd, rest_offset = nil)
private :transfercmd

def getaddress
thishost = Socket.gethostname
thishost = Socket.gethostname rescue ""
if not thishost.index(".")
thishost = Socket.gethostbyname(thishost)[0]
thishost = Socket.gethostbyname(thishost)[0] rescue ""
end
if ENV.has_key?("LOGNAME")
realuser = ENV["LOGNAME"]
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2009-11-24"
#define RUBY_VERSION_CODE 187
#define RUBY_RELEASE_CODE 20091124
#define RUBY_PATCHLEVEL 217
#define RUBY_PATCHLEVEL 218

#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Expand Down

0 comments on commit 1298533

Please sign in to comment.