diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-07 20:35:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-07 20:35:10 +0000 |
commit | f8cdd9907a9076b8e628060a38e9d641625f4c8e (patch) | |
tree | 029e6d867f5a06acf5132e361b6f1522c1b1efc4 /safe.c | |
parent | b15e0697fdb6f89c93910e20296691e7fdddb8ff (diff) |
* 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
Diffstat (limited to 'safe.c')
-rw-r--r-- | safe.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |