summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-12-31 00:43:13 -0800
committerSam Bingner <sam@bingner.com>2020-07-17 00:22:23 -1000
commit5bec9a8403f570c7ad6ecdfbad0618c4be51cac8 (patch)
treed88dd8fea1a5b62a957c6e603f78db170e7b0b39 /apt-pkg
parent491982e8a4b199aeb06ce97bff5bcb4d995ba3a8 (diff)
It is *never* a good idea to throw away stderr :/.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 4f123491b..f0a36613c 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -2210,12 +2210,6 @@ public:
dup2(compressed_fd,STDIN_FILENO);
dup2(Pipe[1],STDOUT_FILENO);
}
- int const nullfd = open("/dev/null", O_WRONLY);
- if (nullfd != -1)
- {
- dup2(nullfd,STDERR_FILENO);
- close(nullfd);
- }
SetCloseExec(STDOUT_FILENO,false);
SetCloseExec(STDIN_FILENO,false);