From bb544954b2679d4bd86fa6da6da29171e65e017a Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 10 Mar 2003 15:05:18 +0000 Subject: * 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 --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') 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); -- cgit v1.2.3