From 04f0de74dd22bc9e06b14d0c777d15fcde2e50a8 Mon Sep 17 00:00:00 2001 From: ktsj Date: Sun, 18 Aug 2013 10:36:51 +0000 Subject: * error.c, file.c, gc.c, hash.c, thread.c, variable.c, vm_eval.c, bin/erb: $SAFE=4 is obsolete. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 8de71db268..f649f20d06 100644 --- a/hash.c +++ b/hash.c @@ -2714,10 +2714,6 @@ env_aset(VALUE obj, VALUE nm, VALUE val) { char *name, *value; - if (rb_safe_level() >= 4) { - rb_raise(rb_eSecurityError, "can't change environment variable"); - } - if (NIL_P(val)) { env_delete(obj, nm); return Qnil; -- cgit v1.2.3