systemctl: show "Until:" field only for service and scope units
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Feb 2023 04:26:28 +0000 (13:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Feb 2023 14:04:43 +0000 (23:04 +0900)
commitb59052be261523721a86caf4ef820e63f03e26a4
tree52d546e02c87c245d9c3c29509d454c8d0c9b75b
parent58fbf167d76e51b0962785ff5efb780def37ad43
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.
src/systemctl/systemctl-show.c