HomeFreeBSD

elftoolchain: stop leaving tempfiles on error

Description

elftoolchain: stop leaving tempfiles on error

Temporary files were not cleaned up, resulting in $TMPDIR or even
the current directory becoming littered with ecp.* files.

This happened with error and even sometimes on success!

Approved by: dim
MFC after: 4 weeks
Accepted upstream: https://sourceforge.net/p/elftoolchain/code/3918/
Differential Revision: https://reviews.freebsd.org/D28651

(cherry picked from commit 5ac70383c8b32eeec80426e837960977971c7c2b)

Details

Provenance
creesAuthored on Feb 15 2021, 11:37 AM
emasteCommitted on Nov 8 2021, 1:54 PM
Differential Revision
D28651: elfcopy: stop leaving temporary files on error
Parents
rGdf838c540632: fuser: restore functionality by fixing fsid type
Branches
Unknown
Tags
Unknown