]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysupdated: Make sure targets we skip are skipped
authorAdrian Vovk <adrianvovk@gmail.com>
Wed, 6 Nov 2024 17:43:48 +0000 (12:43 -0500)
committerAdrian Vovk <adrianvovk@gmail.com>
Wed, 6 Nov 2024 20:44:10 +0000 (15:44 -0500)
commita509603b2e7937d13410b2c8d45995212787f52d
treea64aad5d1492be27fbb33484ca4dedaa0f92e587
parentd145d1d41087a4060bd50ad2b4e740633ca2edc0
sysupdated: Make sure targets we skip are skipped

We'd log that we're skipping the target, but it would never actually get
removed from the manager's list. Thus, we'd advertise targets that don't
actually exist to clients.

In the original version of the sysupdated PR, this was handled by
removing the target from the manager's list in target_free, and using a
_cleanup_ attribute to free the target when skipping. However, this
changed at some point during review. So, this commit takes the
alternative approach
src/sysupdate/sysupdated.c