aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]);
}
}