diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-06 01:17:59 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-06 01:17:59 +0000 |
| commit | 9e1ea49dd3469c8d2a29f1f2d9b0de62b0591fc9 (patch) | |
| tree | 3443b14bfcebcb8f06ab4cacf61ce04ce75a3852 /ruby.c | |
| parent | 5d565c585a5b0f28d0e56b760a35e46f6a7221c3 (diff) | |
| download | ruby-9e1ea49dd3469c8d2a29f1f2d9b0de62b0591fc9.tar.gz ruby-9e1ea49dd3469c8d2a29f1f2d9b0de62b0591fc9.tar.xz ruby-9e1ea49dd3469c8d2a29f1f2d9b0de62b0591fc9.zip | |
* ext/stringio/stringio.c (strio_set_string, strio_reopen): check
tainted.
* ext/stringio/stringio.c (strio_copy, strio_ungetc, strio_write,
strio_putc): add infection.
* ext/stringio/stringio.c (strio_path): just nil. [ruby-dev:21846]
* ruby.c (proc_options): reserve searched script path in the
source file name table. [ruby-list:38765]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
| -rw-r--r-- | ruby.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -429,6 +429,7 @@ proc_options(argc, argv) char *argv0 = argv[0]; int do_search; char *s; + NODE *volatile script_node = 0; int version = 0; int copyright = 0; @@ -751,6 +752,8 @@ proc_options(argc, argv) script = dln_find_file(argv[0], getenv(PATH_ENV)); } if (!script) script = argv[0]; + script = ruby_sourcefile = rb_source_filename(script); + script_node = NEW_NEWLINE(0); } #ifdef DOSISH translate_char(script, '\\', '/'); |
