зеркало из https://github.com/github/ruby.git
* process.c (rb_exec_fillarg): check use_shell field before accessing
a union field. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
1c4e6066be
Коммит
a4ef2bbdd1
|
@ -1,3 +1,8 @@
|
|||
Wed Jun 6 05:27:54 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (rb_exec_fillarg): check use_shell field before accessing
|
||||
a union field.
|
||||
|
||||
Wed Jun 6 04:58:44 2012 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* process.c (rb_spawn_process): prog variable is not used for Unix.
|
||||
|
|
|
@ -1830,7 +1830,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str
|
|||
e->invoke.cmd.argv_buf = argv_buf;
|
||||
}
|
||||
|
||||
if (e->invoke.cmd.argv_buf) {
|
||||
if (!e->use_shell) {
|
||||
char *p, *ep, *null=NULL;
|
||||
VALUE argv_str;
|
||||
argv_str = hide_obj(rb_str_buf_new(sizeof(char*) * (argc + 2)));
|
||||
|
|
Загрузка…
Ссылка в новой задаче