1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

systemctl: do not show unit properties with --all

Fixes a bug introduced by a6e334649d4bdff0c6f664e98666b2223aa21a8b.

Fixes #25343.
This commit is contained in:
Yu Watanabe 2022-11-13 21:10:56 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 244c2a8344
commit 0b51a1c8c4

View File

@ -2207,9 +2207,10 @@ int verb_show(int argc, char *argv[], void *userdata) {
if (!arg_states && !arg_types) {
if (show_mode == SYSTEMCTL_SHOW_PROPERTIES)
r = show_one(bus, "/org/freedesktop/systemd1", NULL, show_mode, &new_line, &ellipsized);
else
r = show_system_status(bus);
/* systemctl show --all → show properties of the manager */
return show_one(bus, "/org/freedesktop/systemd1", NULL, show_mode, &new_line, &ellipsized);
r = show_system_status(bus);
if (r < 0)
return r;