elfcompress: fix exit status regression in case of "Nothing to do"
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 12 May 2021 15:00:00 +0000 (15:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 12 May 2021 15:00:00 +0000 (15:00 +0000)
commit43ac25c2de7ba21fb8f9e4d4db0c01c1408da0b8
tree58617743db7d4b80213835016034f8cd7b5cbb26
parentadc201f81902f3015a841869756ed4b9b811fe33
elfcompress: fix exit status regression in case of "Nothing to do"

When elfcompress decides that no section data needs to be updated and
therefore the file does not have to be rewritten, it still has to exit
with a zero status indicating success.

Resolves: https://sourceware.org/bugzilla/show_bug.cgi?id=27856
Fixes: c497478390de ("elfcompress: Replace cleanup() with label")
src/ChangeLog
src/elfcompress.c