diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-10 15:05:18 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-03-10 15:05:18 +0000 |
commit | 5df41824baf1b5c1a24846ea667b12addf21151c (patch) | |
tree | 11cb95cc04fbef35876af401f82af0733f7b7fb1 /eval.c | |
parent | 297016a680236bb7c98d763ca2f64d810ea841a3 (diff) | |
download | ruby-5df41824baf1b5c1a24846ea667b12addf21151c.tar.gz ruby-5df41824baf1b5c1a24846ea667b12addf21151c.tar.xz ruby-5df41824baf1b5c1a24846ea667b12addf21151c.zip |
* file.c (rb_find_file): need world writable directory check for
relative paths too.
* file.c (rb_find_file): world writable directory check if
$SAFE >= 1 (was $SAFE >= 2).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4029,7 +4029,7 @@ massign(self, node, val, pcall) len = RARRAY(val)->len; list = node->nd_head; - if (len == 1 && list && (!pcall || list->nd_next || node->nd_args)) { + if (len == 1 && list) { VALUE v = RARRAY(val)->ptr[0]; tmp = rb_check_array_type(v); |