зеркало из https://github.com/github/ruby.git
* safe.c (safe_setter): add warning for $SAFE=3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b15e0697fd
Коммит
f8cdd9907a
|
@ -1,3 +1,7 @@
|
|||
Sat Nov 8 05:31:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* safe.c (safe_setter): add warning for $SAFE=3.
|
||||
|
||||
Sat Nov 8 01:48:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* thread_pthread.c (rb_thread_create_timer_thread): do not wait never
|
||||
|
|
3
safe.c
3
safe.c
|
@ -66,6 +66,9 @@ 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; you might want to use $SAFE=4");
|
||||
}
|
||||
if (level > SAFE_LEVEL_MAX) {
|
||||
level = SAFE_LEVEL_MAX;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче