summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-05 21:37:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-05 21:37:12 +0000
commitdd155e029e1bc42a15532f82f0d7e6bae5ec0229 (patch)
tree779e74ad8e5a227d6b10673182f389e460eeec67
parentdeba55eb1a950b72788aa4cab10ccc032c1d37a7 (diff)
ruby.c: no safe_level 4
* ruby.c (process_options): safe_level 4 was removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ruby.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ruby.c b/ruby.c
index 2f714b0..174bfec 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1322,11 +1322,6 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
ruby_show_copyright();
}
- if (opt->safe_level >= 4) {
- OBJ_TAINT(rb_argv);
- OBJ_TAINT(GET_VM()->load_path);
- }
-
if (!opt->e_script) {
if (argc == 0) { /* no more args */
if (opt->verbose)
@@ -1485,11 +1480,6 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
process_sflag(&opt->sflag);
opt->xflag = 0;
- if (opt->safe_level >= 4) {
- FL_UNSET(rb_argv, FL_TAINT);
- FL_UNSET(GET_VM()->load_path, FL_TAINT);
- }
-
if (opt->dump & DUMP_BIT(syntax)) {
printf("Syntax OK\n");
return Qtrue;