From: Yu Watanabe Date: Sun, 13 Nov 2022 12:10:56 +0000 (+0900) Subject: systemctl: do not show unit properties with --all X-Git-Tag: v253-rc1~531 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0b51a1c8c4c77f98a8c234cd2c7a7849329be027;p=thirdparty%2Fsystemd.git systemctl: do not show unit properties with --all Fixes a bug introduced by a6e334649d4bdff0c6f664e98666b2223aa21a8b. Fixes #25343. --- diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 8d3db98c0a5..24c7d564b8b 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -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;