mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
hostnamectl: Exit with zero on success
In show_all_names(), bus_map_all_properties() returns 1 on success which is then used as the return code of show_all_names() and eventually main(). Exit with zero in main() on all nonnegative results to guard against similar errors.
This commit is contained in:
parent
755bde375f
commit
5567fafbc9
Notes:
Lennart Poettering
2014-12-09 20:16:41 +01:00
Backport: bugfix
@ -536,5 +536,5 @@ int main(int argc, char *argv[]) {
|
|||||||
r = hostnamectl_main(bus, argc, argv);
|
r = hostnamectl_main(bus, argc, argv);
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
return r < 0 ? EXIT_FAILURE : r;
|
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user