mirror of
https://github.com/systemd/systemd.git
synced 2025-07-21 16:59:09 +03:00
systemctl: do not show unit properties with --all
Fixes a bug introduced by a6e334649d
.
Fixes #25343.
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
244c2a8344
commit
0b51a1c8c4
@ -2207,9 +2207,10 @@ int verb_show(int argc, char *argv[], void *userdata) {
|
|||||||
|
|
||||||
if (!arg_states && !arg_types) {
|
if (!arg_states && !arg_types) {
|
||||||
if (show_mode == SYSTEMCTL_SHOW_PROPERTIES)
|
if (show_mode == SYSTEMCTL_SHOW_PROPERTIES)
|
||||||
r = show_one(bus, "/org/freedesktop/systemd1", NULL, show_mode, &new_line, &ellipsized);
|
/* systemctl show --all → show properties of the manager */
|
||||||
else
|
return show_one(bus, "/org/freedesktop/systemd1", NULL, show_mode, &new_line, &ellipsized);
|
||||||
r = show_system_status(bus);
|
|
||||||
|
r = show_system_status(bus);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user