summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-10 15:05:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-10 15:05:18 +0000
commit5df41824baf1b5c1a24846ea667b12addf21151c (patch)
tree11cb95cc04fbef35876af401f82af0733f7b7fb1 /eval.c
parent297016a680236bb7c98d763ca2f64d810ea841a3 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 0a0eb12f0..498182de1 100644
--- a/eval.c
+++ b/eval.c
@@ -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);