[前][次][番号順一覧][スレッド一覧]

ruby-changes:36643

From: nobu <ko1@a...>
Date: Sat, 6 Dec 2014 06:37:24 +0900 (JST)
Subject: [ruby-changes:36643] nobu:r48724 (trunk): ruby.c: no safe_level 4

nobu	2014-12-06 06:37:12 +0900 (Sat, 06 Dec 2014)

  New Revision: 48724

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48724

  Log:
    ruby.c: no safe_level 4
    
    * ruby.c (process_options): safe_level 4 was removed.

  Modified files:
    trunk/ruby.c
Index: ruby.c
===================================================================
--- ruby.c	(revision 48723)
+++ ruby.c	(revision 48724)
@@ -1322,11 +1322,6 @@ process_options(int argc, char **argv, s https://github.com/ruby/ruby/blob/trunk/ruby.c#L1322
 	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, s https://github.com/ruby/ruby/blob/trunk/ruby.c#L1480
     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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]