https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255589

Adriaan de Groot <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Adriaan de Groot <[email protected]> ---
I'm *fairly* sure this was introduced in upstream
https://sourceforge.net/p/elftoolchain/code/3919/ and that it needs cleanup to
remove the tempfile on the error-exit path with unrecognized input, something
like this:

```
        switch (elf_kind(ecp->ein)) {
        case ELF_K_NONE:
                if (tempfile != NULL) {
                        if (unlink(tempfile) < 0)
                                err(EXIT_FAILURE, "unlink %s failed",
tempfile);
                        free(tempfile);
                }
                errx(EXIT_FAILURE, "file format not recognized");
```

Adding crees@ as upstream-involved.

In the meantime, ports are getting cruft like `${RM}
${STAGEDIR}${LOCALBASE}/bin/ecp.*` to clean up after strip(1).

Note that you don't need to use a full path for the strip command; soemthing
like `strip *.png` will bail out on the first png file and leave a single
`ecp.<random>` file in the current directory.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to