* 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
@ -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>
|
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
|
* include/ruby/win32.h, bcc32/Makefile.sub (config.h): bcc 5.8 has
|
||||||
|
@ -722,9 +722,9 @@ module Net
|
|||||||
begin
|
begin
|
||||||
voidcmd("CDUP")
|
voidcmd("CDUP")
|
||||||
return
|
return
|
||||||
rescue FTPPermError
|
rescue FTPPermError => e
|
||||||
if $![0, 3] != "500"
|
if e.message[0, 3] != "500"
|
||||||
raise FTPPermError, $!
|
raise e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user