1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* process.c (rb_f_system): fixed lack of security check before

calling do_spawn() on win32. [ruby-talk:84555]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2003-10-30 00:34:30 +00:00
parent 525336fcc9
commit f1ab0d3cab
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Oct 30 09:32:26 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* process.c (rb_f_system): fixed lack of security check before
calling do_spawn() on win32. [ruby-talk:84555]
Thu Oct 30 02:46:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org> Thu Oct 30 02:46:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): single array value to normal Proc#call * eval.c (proc_invoke): single array value to normal Proc#call

View file

@ -976,6 +976,7 @@ rb_f_system(argc, argv)
if (argc == 1 && prog == 0) { if (argc == 1 && prog == 0) {
#if defined(_WIN32) #if defined(_WIN32)
SafeStringValue(argv[0]);
status = do_spawn(P_WAIT, RSTRING(argv[0])->ptr); status = do_spawn(P_WAIT, RSTRING(argv[0])->ptr);
#else #else
status = proc_spawn(argv[0]); status = proc_spawn(argv[0]);