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.
backported from trunk. fixed [ruby-core:18057]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a5a4354976
commit
530ad54d8b
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 5 16:43:07 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/ftp.rb (chdir): handle 5xx errors correctly.
|
||||
backported from trunk. fixed [ruby-core:18057].
|
||||
|
||||
Tue Aug 5 16:33:20 2008 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/imap.rb (disconnect): do not refer SSL::SSLSocket for
|
||||
|
|
|
@ -668,9 +668,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…
Add table
Reference in a new issue