summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-02 05:54:45 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-02 05:54:45 +0000
commit7b45f992889e20ff28efa8bbc5c2b000704c6b59 (patch)
treed81229fcb2612069392884d833d8a7bb2aa7c9df
parent4727632f01cb1aea1fd5fe7adf29803380ed2b26 (diff)
* io.c (pipe_open): need to set cmd if argc == 0 (win32).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--io.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c610a22a99..cbee596033 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue Nov 2 14:54:02 2004 NAKAMURA Usaku <[email protected]>
+
+ * io.c (pipe_open): need to set cmd if argc == 0 (win32).
+
Tue Nov 2 01:20:09 2004 Yukihiro Matsumoto <[email protected]>
* io.c (pipe_open): IO.popen should take array as 1st argument for
diff --git a/io.c b/io.c
index 1b5e7acfa9..0dbb6b741c 100644
--- a/io.c
+++ b/io.c
@@ -2852,6 +2852,9 @@ pipe_open(argc, argv, mode)
rb_w32_join_argv(cmd, args);
exename = RSTRING(prog)->ptr;
}
+ else {
+ cmd = StringValueCStr(prog);
+ }
while ((pid = rb_w32_pipe_exec(cmd, exename, openmode, &fpr, &fpw)) == -1) {
/* exec failed */
switch (errno) {