summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-12-31 00:43:13 -0800
committerSam Bingner <sam@bingner.com>2019-08-17 12:43:03 -1000
commit2c6738f97e61084b48e68b0a8747cbbc2fdc7609 (patch)
tree8155d7a5a9d0e0a0378a57e5e75424c00c85c4c8
parentb98c468f7e15101f43e08f43670fd04c76bd2128 (diff)
It is *never* a good idea to throw away stderr :/.
-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);