diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-29 06:22:29 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-29 06:22:29 +0000 |
| commit | 773a5fda7344c2d8a7d50547f1bbbcd6a917ece9 (patch) | |
| tree | 0c31c859f8c1b9d50a1bb239f90739ced291c8f3 | |
| parent | 61c5c2e623140f0ca246cf7de3bc9ef861b220d5 (diff) | |
* file.c (rb_file_join): recursive array has no meaning as path
name. [ruby-core:23329]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | file.c | 4 | ||||
| -rw-r--r-- | version.h | 6 |
3 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Wed Apr 29 15:22:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * file.c (rb_file_join): recursive array has no meaning as path + name. [ruby-core:23329] + Tue Apr 28 23:05:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c (get_ts): use readtime clock. [ruby-dev:38354] @@ -3118,8 +3118,8 @@ rb_file_join(ary, sep) case T_STRING: break; case T_ARRAY: - if (rb_inspecting_p(tmp)) { - tmp = rb_str_new2("[...]"); + if (tmp == ary || rb_inspecting_p(tmp)) { + rb_raise(rb_eArgError, "recursive array"); } else { VALUE args[2]; @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.8.8" -#define RUBY_RELEASE_DATE "2009-04-28" +#define RUBY_RELEASE_DATE "2009-04-29" #define RUBY_VERSION_CODE 188 -#define RUBY_RELEASE_CODE 20090428 +#define RUBY_RELEASE_CODE 20090429 #define RUBY_PATCHLEVEL -1 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 8 #define RUBY_RELEASE_YEAR 2009 #define RUBY_RELEASE_MONTH 4 -#define RUBY_RELEASE_DAY 28 +#define RUBY_RELEASE_DAY 29 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |
