]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: process all units matched by a glob in the cat verb by default
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 11 Apr 2019 12:34:32 +0000 (14:34 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 May 2019 19:11:44 +0000 (21:11 +0200)
commit4eb5312079962fceb22c1b730087d724d02fee8b
tree29b66b0998aaa43478aa3579352f470d0f22a0ad
parentcfa0ce187fe31095f407748fe6c7eccae1eb9257
systemctl: process all units matched by a glob in the cat verb by default

Originally, `systemctl cat` would match only active units, for example:

$ systemctl cat sshd.service

would cat the sshd.service unit file even if the service was inactive.
However:

$ systemctl cat ssh*

would show it only if it was active.

Let's unify the behavior and cat all unit files regardless of a state,
if no state was given explicitly to filter.
src/systemctl/systemctl.c