mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-05-29 17:05:48 +03:00
systemctl: do not show unit properties with --all
Fixes a bug introduced by a6e334649d4bdff0c6f664e98666b2223aa21a8b. Fixes #25343.
This commit is contained in:
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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user