mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/ftp.rb (chdir): handle 5xx errors correctly.
fixed [ruby-core:18057]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5133fc67a4
commit
1498b668d2
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 5 16:40:06 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/ftp.rb (chdir): handle 5xx errors correctly.
|
||||
fixed [ruby-core:18057].
|
||||
|
||||
Tue Aug 5 16:38:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* include/ruby/win32.h, bcc32/Makefile.sub (config.h): bcc 5.8 has
|
||||
|
|
|
@ -722,9 +722,9 @@ module Net
|
|||
begin
|
||||
voidcmd("CDUP")
|
||||
return
|
||||
rescue FTPPermError
|
||||
if $![0, 3] != "500"
|
||||
raise FTPPermError, $!
|
||||
rescue FTPPermError => e
|
||||
if e.message[0, 3] != "500"
|
||||
raise e
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue