diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-24 08:20:56 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-24 08:20:56 +0000 |
commit | ae6782315a0e14949259e3b6c8ce544e5e774ba5 (patch) | |
tree | cb6daa002415465dad5cb06950d028a7c9abc492 | |
parent | 86bab63d237260dc77c65a8b6c6d5ed1f9bb3bff (diff) | |
download | ruby-ae6782315a0e14949259e3b6c8ce544e5e774ba5.tar.gz |
* ruby.c (process_options): set safe_level before loading script.
[ruby-dev:34421]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ruby.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Thu Apr 24 17:19:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * ruby.c (process_options): set safe_level before loading script. + [ruby-dev:34421] + Thu Apr 24 14:15:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * dln.c (dln_find_1): prior files with extensions to files sans @@ -1073,6 +1073,7 @@ process_options(VALUE arg) } rb_enc_set_default_external(rb_enc_from_encoding(enc)); + rb_set_safe_level_force(safe); if (opt->e_script) { rb_encoding *eenc; if (opt->src.enc.index >= 0) { @@ -1091,7 +1092,6 @@ process_options(VALUE arg) } tree = load_file(parser, opt->script, 1, opt); } - rb_set_safe_level_force(safe); if (!tree) return Qfalse; @@ -50,7 +50,7 @@ RUBY_EXTERN const char ruby_copyright[]; RUBY_RELEASE_STR" " \ STRINGIZE(RUBY_RELEASE_NUM)") " \ "["RUBY_PLATFORM"]" -# define RUBY_COPYRIGHT \ +# define RUBY_COPYRIGHT \ "ruby - Copyright (C) " \ STRINGIZE(RUBY_BIRTH_YEAR)"-" \ STRINGIZE(RUBY_RELEASE_YEAR)" " \ |