]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: tweak error handling around VARLINK_ERROR_UNIT_BAD_SETTING
authorMichael Vogt <michael@amutable.com>
Wed, 20 May 2026 06:52:20 +0000 (08:52 +0200)
committerMichael Vogt <michael@amutable.com>
Wed, 20 May 2026 14:11:45 +0000 (16:11 +0200)
commitddedddffde27e5834e4a90edcbc6e70aedf218ca
tree8d2c6191462e0fbfa046d873ac78e5a8a307f08b
parentee7bd1d8a0c7dd237adc0fa1c7b12dd63969ab42
core: tweak error handling around VARLINK_ERROR_UNIT_BAD_SETTING

This commit move the erros in StartTransient from
VARLINK_ERROR_UNIT_BAD_SETTING to SD_VARLINK_ERROR_INVALID_PARAMETER
and it also ensures we have the bad field in the error.

Thanks to Ivan Kruglov for suggesting this.
src/core/varlink-unit.c
test/units/TEST-26-SYSTEMCTL.sh