]> git.ipfire.org Git - thirdparty/elfutils.git/commit
strip: Clean up a bit more after errors
authorMark Wielaard <mark@klomp.org>
Fri, 6 Oct 2023 14:25:56 +0000 (16:25 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 6 Oct 2023 14:25:56 +0000 (16:25 +0200)
commit557aa6a4b7b1d678b7c2c3b9aae1dafcc2160c64
tree71f07f78c0e38c8b7fe8862682a36a6856e47422
parentefedcaa3415cf1305bb4d20a42aae3b60d341122
strip: Clean up a bit more after errors

In some cases (late) errors would exit early without cleanup.  Set
result to 1 (failure) in those cases and fallthrough.  That way we
cleanup and might provide more hints to the user about what was wrong
with the file.

     * src/strip.c (handle_elf): Set result to 1 and fallthrough
     instead of return 1.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/strip.c