diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-20 03:55:29 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-20 03:55:29 +0000 |
| commit | a66b647f0cf23b3f331e0671631dd7d12da9807d (patch) | |
| tree | dfb72b705c1bbe808024737314821b34eb0b00ed /win32 | |
| parent | d16e2eaf9c431aabc36fa714478fcdd77f2093be (diff) | |
| download | ruby-a66b647f0cf23b3f331e0671631dd7d12da9807d.tar.gz ruby-a66b647f0cf23b3f331e0671631dd7d12da9807d.tar.xz ruby-a66b647f0cf23b3f331e0671631dd7d12da9807d.zip | |
* io.c (pipe_open): fix typo.
* win32/win32.c (CreateChild): first argument to CreateProcess() must
have path, not just basename.
diff -U2 io.c io.c
--- io.c 20 Feb 2004 01:02:56 -0000
+++ io.c 20 Feb 2004 02:56:08 -0000
@@ -2696,5 +2697,5 @@
rb_thread_sleep(1);
break;
- defined:
+ default:
rb_sys_fail(pname);
break;
only in patch2:
--- win32/win32.c 19 Feb 2004 09:08:23 -0000 1.112
+++ win32/win32.c 20 Feb 2004 02:49:04 -0000
@@ -14,2 +14,3 @@
#include "rubysig.h"
+#include "dln.h"
#include <fcntl.h>
@@ -903,3 +904,14 @@
if (prog) {
- shell = prog;
+ char *p = dln_find_exe(prog, NULL);
+ if (!p) {
+ shell = prog;
+ }
+ else {
+ shell = p;
+ while (*p) {
+ if ((unsigned char)*p == '/')
+ *p = '\\';
+ p = CharNext(p);
+ }
+ }
}
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
0 files changed, 0 insertions, 0 deletions
