]> git.saurik.com Git - apt.git/commit - test/integration/test-no-fds-leaked-to-maintainer-scripts
close leaking slave fd after setting up pty magic
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 17 Nov 2014 14:06:35 +0000 (15:06 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 18 Nov 2014 01:41:20 +0000 (02:41 +0100)
commit0c78757010a17173bdc79b818133697e7dcbf6a4
tree666aa7d48511f0f3c8d31a0bf8a3f5f0f06e83d8
parent4bb006d1ddcf1807474067dcbef9fb0bb5def0ac
close leaking slave fd after setting up pty magic

The fd moves out of scope here anyway, so we should close it properly
instead of leaking it which will tickle down to dpkg maintainer scripts.

Closes: 767774
apt-pkg/deb/dpkgpm.cc
test/integration/framework
test/integration/test-failing-maintainer-scripts
test/integration/test-no-fds-leaked-to-maintainer-scripts [new file with mode: 0755]