Skip to content

Commit

Permalink
* process.c (rb_f_system): fixed lack of security check before
Browse files Browse the repository at this point in the history
  calling do_spawn() on win32. [ruby-talk:84555]


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Oct 30, 2003
1 parent d279381 commit 40ad68f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* eval.c (proc_invoke): single array value to normal Proc#call
Expand Down
1 change: 1 addition & 0 deletions process.c
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,7 @@ rb_f_system(argc, argv)

if (argc == 1 && prog == 0) {
#if defined(_WIN32)
SafeStringValue(argv[0]);
status = do_spawn(P_WAIT, RSTRING(argv[0])->ptr);
#else
status = proc_spawn(argv[0]);
Expand Down

0 comments on commit 40ad68f

Please sign in to comment.