summaryrefslogtreecommitdiff
path: root/safe.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-07 20:35:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-07 20:35:10 +0000
commitf8cdd9907a9076b8e628060a38e9d641625f4c8e (patch)
tree029e6d867f5a06acf5132e361b6f1522c1b1efc4 /safe.c
parentb15e0697fdb6f89c93910e20296691e7fdddb8ff (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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/safe.c b/safe.c
index e351579132..ebe62f4206 100644
--- a/safe.c
+++ b/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;
}