aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2019-03-10 16:39:29 -0500
committerRob Landley <rob@landley.net>2019-03-10 16:39:29 -0500
commitdb6ed125e1aab845996d6326208c1509b7a8649c (patch)
treecfd04c0f7f5798e174573989246f4906b7a7a3ec /lib
parent975960e20fd4371caccff9949d8594419624e061 (diff)
downloadtoybox-db6ed125e1aab845996d6326208c1509b7a8649c.tar.gz
Don't redirect stderr or xexec() error hidden.
Diffstat (limited to 'lib')
-rw-r--r--lib/xwrap.c3
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]);
}
}