[前][次][番号順一覧][スレッド一覧]

ruby-changes:9965

From: nobu <ko1@a...>
Date: Wed, 14 Jan 2009 13:19:50 +0900 (JST)
Subject: [ruby-changes:9965] Ruby:r21506 (trunk): * win32/win32.c (rb_w32_aspawn): should not escape with carret

nobu	2009-01-14 13:19:28 +0900 (Wed, 14 Jan 2009)

  New Revision: 21506

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21506

  Log:
    * win32/win32.c (rb_w32_aspawn): should not escape with carret
      unless using cmd.exe.

  Modified files:
    trunk/ChangeLog
    trunk/win32/win32.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 21505)
+++ ChangeLog	(revision 21506)
@@ -1,3 +1,8 @@
+Wed Jan 14 13:19:21 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* win32/win32.c (rb_w32_aspawn): should not escape with carret
+	  unless using cmd.exe.
+
 Wed Jan 14 13:09:00 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/socket/extconf.rb (gai_strerror): checks if available and if
Index: win32/win32.c
===================================================================
--- win32/win32.c	(revision 21505)
+++ win32/win32.c	(revision 21506)
@@ -1011,7 +1011,7 @@
 rb_w32_aspawn(int mode, const char *prog, char *const *argv)
 {
     int len, differ = 0, c_switch = 0;
-    BOOL ntcmd = FALSE;
+    BOOL ntcmd = FALSE, tmpnt;
     const char *shell;
     char *cmd, fbuf[MAXPATHLEN];
 
@@ -1019,7 +1019,8 @@
 
     if (!prog) prog = argv[0];
     if ((shell = getenv("COMSPEC")) &&
-	internal_cmd_match(prog, ntcmd = !is_command_com(shell))) {
+	internal_cmd_match(prog, tmpnt = !is_command_com(shell))) {
+	ntcmd = tmpnt;
 	prog = shell;
 	c_switch = 1;
 	differ = 1;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]