In autodie's truncate.t, close $tmpfile before opening again.

Waiting to be merged upstream: see CPAN RT#96609.
Specify NI_NUMERICSERV for getnameinfo.

Waiting to be merged upstream: see CPAN RT#98217.