mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
deba55eb1a
commit
dd155e029e
1 changed files with 0 additions and 10 deletions
10
ruby.c
10
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue