diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-15 02:50:57 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-15 02:50:57 +0000 |
commit | e3ba58bb2c6918fd810ecb2839b020ae7131fa39 (patch) | |
tree | 67b67285d4630f55cb6b2a8be141233113f8c73c /file.c | |
parent | 262c620e90c6f88430c10ef92ee07958085633d3 (diff) |
merge revision(s) 23306:
* 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_7@24114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3124,8 +3124,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]; |