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

Adriaan de Groot <adr...@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cr...@freebsd.org

--- Comment #1 from Adriaan de Groot <adr...@freebsd.org> ---
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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to