chiark / gitweb /
systemctl: return an error code is status fails
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 10 May 2014 01:44:25 +0000 (03:44 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 10 May 2014 01:44:41 +0000 (03:44 +0200)
commit5bb75bc745557d5141066dee796b329507b0c634
treeb8aa9958f500fcebd9061de60036d0e5e40984e4
parentb90b025af151eb4e07121f86495d9362e54b3455
systemctl: return an error code is status fails

This got lost in the refactoring in f74294c1dabb4.

Also make sure that the return code corresponds to the *first* failure,
not the last.

https://lists.fedoraproject.org/pipermail/devel/2014-May/199080.html
src/systemctl/systemctl.c