From: Yu Watanabe Date: Wed, 22 Feb 2023 04:26:28 +0000 (+0900) Subject: systemctl: show "Until:" field only for service and scope units X-Git-Tag: v254-rc1~1194 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b59052be261523721a86caf4ef820e63f03e26a4;p=thirdparty%2Fsystemd.git systemctl: show "Until:" field only for service and scope units Only service and scope units have RuntimeMaxUSec bus property. To suppress the "Until:" field for other unit types, the entry must be initialized with USEC_INFINITY. Fixes #26473. --- diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 589c91a83b0..66ae9800d40 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -2058,6 +2058,7 @@ static int show_one( _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_set_free_ Set *found_properties = NULL; _cleanup_(unit_status_info_free) UnitStatusInfo info = { + .runtime_max_sec = USEC_INFINITY, .memory_current = UINT64_MAX, .memory_high = CGROUP_LIMIT_MAX, .memory_max = CGROUP_LIMIT_MAX,