summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/fileutl.cc
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2016-12-31 00:43:13 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2016-12-31 00:43:13 -0800
commit5ac0f77c5575dc06bfc0db383da984c96ce284b9 (patch)
tree90b230e2dcce69e8df452936cef5cb7a09547d42 /apt-pkg/contrib/fileutl.cc
parentd52f68c8d7e385613076d9ef56af179532139ac8 (diff)
It is *never* a good idea to throw away stderr :/.
Diffstat (limited to 'apt-pkg/contrib/fileutl.cc')
-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 affab956c..dd36ffa79 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -1956,12 +1956,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);