]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: Replace check_one_unit() by get_state_one_unit() 2768/head
authorBenjamin ROBIN <dev@benjarobin.fr>
Mon, 29 Feb 2016 13:25:16 +0000 (14:25 +0100)
committerBenjamin ROBIN <dev@benjarobin.fr>
Mon, 29 Feb 2016 13:38:44 +0000 (14:38 +0100)
commitfa0d5878c68a3f8d6a5612c4534471213c7e3d76
tree29ab5bcf91d91139073ede6013444d76d2366440
parent5df2b16d4bf03ac3f3f5cf6f91d5490cab4681d6
systemctl: Replace check_one_unit() by get_state_one_unit()

The get_state_one_unit returns the enum of the active state of the unit
Do not rely on the string value of the active state.

Fix #2718 since the refactoring allow to handle more case
src/systemctl/systemctl.c