summaryrefslogtreecommitdiff
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
commitbb544954b2679d4bd86fa6da6da29171e65e017a (patch)
tree11cb95cc04fbef35876af401f82af0733f7b7fb1 /eval.c
parent70b55f2018ba19a0a1b516bd7bf8b112cd7ae5fb (diff)
* 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: svn+ssh://ci.ruby-lang.org/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 0a0eb12f02..498182de1d 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);