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
10
ruby.c
10
ruby.c
@ -1322,11 +1322,6 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
|
|||||||
ruby_show_copyright();
|
ruby_show_copyright();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (opt->safe_level >= 4) {
|
|
||||||
OBJ_TAINT(rb_argv);
|
|
||||||
OBJ_TAINT(GET_VM()->load_path);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!opt->e_script) {
|
if (!opt->e_script) {
|
||||||
if (argc == 0) { /* no more args */
|
if (argc == 0) { /* no more args */
|
||||||
if (opt->verbose)
|
if (opt->verbose)
|
||||||
@ -1485,11 +1480,6 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
|
|||||||
process_sflag(&opt->sflag);
|
process_sflag(&opt->sflag);
|
||||||
opt->xflag = 0;
|
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)) {
|
if (opt->dump & DUMP_BIT(syntax)) {
|
||||||
printf("Syntax OK\n");
|
printf("Syntax OK\n");
|
||||||
return Qtrue;
|
return Qtrue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user