summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-29 06:22:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-29 06:22:29 +0000
commit773a5fda7344c2d8a7d50547f1bbbcd6a917ece9 (patch)
tree0c31c859f8c1b9d50a1bb239f90739ced291c8f3
parent61c5c2e623140f0ca246cf7de3bc9ef861b220d5 (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--ChangeLog5
-rw-r--r--file.c4
-rw-r--r--version.h6
3 files changed, 10 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 68ef1608b7..3ac9cc2a88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
diff --git a/file.c b/file.c
index 81da305800..297b749ecc 100644
--- a/file.c
+++ b/file.c
@@ -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];
diff --git a/version.h b/version.h
index c55894f5de..f85c8645e9 100644
--- a/version.h
+++ b/version.h
@@ -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[];