* win32/win32.c (rb_w32_spawn): use original command if not found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
15265f8be6
commit
2c772139b6
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 23 14:32:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* win32/win32.c (rb_w32_spawn): use original command if not found.
|
||||||
|
|
||||||
Mon Mar 23 06:51:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Mon Mar 23 06:51:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* enc/depend (link_so): replaces $(TARGET) with basename of the
|
* enc/depend (link_so): replaces $(TARGET) with basename of the
|
||||||
|
@ -1055,7 +1055,6 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog)
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int len = 0, quote = (*cmd == '"') ? '"' : 0;
|
int len = 0, quote = (*cmd == '"') ? '"' : 0;
|
||||||
const char *comspec = shell;
|
|
||||||
for (prog = cmd + !!quote;; prog = CharNext(prog)) {
|
for (prog = cmd + !!quote;; prog = CharNext(prog)) {
|
||||||
if (!*prog) {
|
if (!*prog) {
|
||||||
len = prog - cmd;
|
len = prog - cmd;
|
||||||
@ -1078,7 +1077,7 @@ rb_w32_spawn(int mode, const char *cmd, const char *prog)
|
|||||||
}
|
}
|
||||||
shell = dln_find_exe_r(shell, NULL, fbuf, sizeof(fbuf));
|
shell = dln_find_exe_r(shell, NULL, fbuf, sizeof(fbuf));
|
||||||
if (!shell) {
|
if (!shell) {
|
||||||
shell = comspec;
|
shell = p ? p : cmd;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
len = strlen(shell);
|
len = strlen(shell);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user