Skip to content

Commit

Permalink
Fixes #4457. system and spawn raise 'wrong exec redirect action' when…
Browse files Browse the repository at this point in the history
… redirecting given `out: tempfile` or `err: tempfile`
  • Loading branch information
enebo committed Jan 26, 2017
1 parent dffc23c commit f792cb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/util/io/PopenExecutor.java
Expand Up @@ -1580,6 +1580,7 @@ else if (flags instanceof RubyString)
val = checkExecRedirectFd(runtime, val, false);
param = val;
eargp.fd_dup2 = checkExecRedirect1(runtime, eargp.fd_dup2, key, param);
break;
}
throw runtime.newArgumentError("wrong exec redirect action");
}
Expand Down

0 comments on commit f792cb2

Please sign in to comment.