1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* safe.rb (safe_setter): of course, don't have to warn the limitation of

$SAFE=3 after it's removed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2015-06-17 06:17:21 +00:00
parent bbf440c90b
commit f9fca8316a
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Wed Jun 17 15:15:53 2015 NAKAMURA Usaku <usa@ruby-lang.org>
* safe.rb (safe_setter): of course, don't have to warn the limitation of
$SAFE=3 after it's removed.
Wed Jun 17 14:29:43 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
* include/ruby/ruby.h: $SAFE=3 is now obsolete.

3
safe.c
View file

@ -75,9 +75,6 @@ safe_setter(VALUE val)
"tried to downgrade safe level from %d to %d",
th->safe_level, level);
}
if (level == 3) {
rb_warning("$SAFE=3 does no sandboxing");
}
if (level > SAFE_LEVEL_MAX) {
rb_raise(rb_eArgError, "$SAFE=3 and 4 is obsolete");
}