diff options
author | Rob Landley <rob@landley.net> | 2019-03-10 16:39:29 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-03-10 16:39:29 -0500 |
commit | db6ed125e1aab845996d6326208c1509b7a8649c (patch) | |
tree | cfd04c0f7f5798e174573989246f4906b7a7a3ec /lib | |
parent | 975960e20fd4371caccff9949d8594419624e061 (diff) | |
download | toybox-db6ed125e1aab845996d6326208c1509b7a8649c.tar.gz |
Don't redirect stderr or xexec() error hidden.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xwrap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c index 72e5ea4b..25ec2a53 100644 --- a/lib/xwrap.c +++ b/lib/xwrap.c @@ -257,10 +257,9 @@ pid_t xpopen_both(char **argv, int *pipes) close(pipes[0]); } - // Are we redirecting stdout? (If so, direct stderr to same place.) + // Are we redirecting stdout? if (pipes[1] != 1) { dup2(pipes[1], 1); - dup2(pipes[1], 2); if (cestnepasun[2]) close(cestnepasun[2]); } } |