summaryrefslogtreecommitdiffstats
path: root/io.c
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
commitdd6bdc3de9f2a599786cc36aec4110c3119392cc (patch)
treed81229fcb2612069392884d833d8a7bb2aa7c9df /io.c
parentda6ab229b3b41b6d963f6c5c29864f8a4e5d2aee (diff)
downloadruby-dd6bdc3de9f2a599786cc36aec4110c3119392cc.tar.gz
ruby-dd6bdc3de9f2a599786cc36aec4110c3119392cc.tar.xz
ruby-dd6bdc3de9f2a599786cc36aec4110c3119392cc.zip
* io.c (pipe_open): need to set cmd if argc == 0 (win32).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index 1b5e7acfa..0dbb6b741 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) {