I think this is the right approach as AFAIK the old code did close Fds set via FileFd.Fd()
** Patch added: "We could fix it this way to ensure that FileFd.Fd(int) always sets AutoClose" https://bugs.launchpad.net/ubuntu/+source/apt/+bug/985452/+attachment/3092850/+files/fix1.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/985452 Title: apt-ftparchive fails on scanning large repositories To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt/+bug/985452/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs