Skip to content

Commit c65d935

Browse files
committed
merge revision(s) 18417:
* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct is not supplied. backported from trunk. fixed [ruby-core:18058]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@21480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent f3a4870 commit c65d935

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Tue Jan 13 04:40:30 2009 Shugo Maeda <shugo@ruby-lang.org>
2+
3+
* lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
4+
is not supplied. backported from trunk. fixed [ruby-core:18058].
5+
16
Mon Jan 12 00:23:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* gc.c (gc_sweep, obj_free, run_final): defer finalizers of IO and

lib/net/ftp.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,9 +378,11 @@ def login(user = "anonymous", passwd = nil, acct = nil)
378378
synchronize do
379379
resp = sendcmd('USER ' + user)
380380
if resp[0] == ?3
381+
raise FTPReplyError, resp if passwd.nil?
381382
resp = sendcmd('PASS ' + passwd)
382383
end
383384
if resp[0] == ?3
385+
raise FTPReplyError, resp if acct.nil?
384386
resp = sendcmd('ACCT ' + acct)
385387
end
386388
end

version.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#define RUBY_VERSION "1.8.7"
2-
#define RUBY_RELEASE_DATE "2009-01-12"
2+
#define RUBY_RELEASE_DATE "2009-01-13"
33
#define RUBY_VERSION_CODE 187
4-
#define RUBY_RELEASE_CODE 20090112
5-
#define RUBY_PATCHLEVEL 83
4+
#define RUBY_RELEASE_CODE 20090113
5+
#define RUBY_PATCHLEVEL 84
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8
99
#define RUBY_VERSION_TEENY 7
1010
#define RUBY_RELEASE_YEAR 2009
1111
#define RUBY_RELEASE_MONTH 1
12-
#define RUBY_RELEASE_DAY 12
12+
#define RUBY_RELEASE_DAY 13
1313

1414
#ifdef RUBY_EXTERN
1515
RUBY_EXTERN const char ruby_version[];

0 commit comments

Comments
 (0)