systemctl: skip non-existent units in the 'cat' verb
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 28 Dec 2019 11:29:19 +0000 (12:29 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Feb 2020 16:25:52 +0000 (17:25 +0100)
commit92f90837dc0e9da685212954bc254e975b3adb48
treed8d052434a40ef9cbf34bc0a2b47db74fa7d67b3
parenta67227cc99f7d46343dcd6d96e1887c4e2b167a6
systemctl: skip non-existent units in the 'cat' verb

When processing list of units (either provided manually or as a
wildcard), let's skip units for which we don't have an on-disk
counterpart, but note the -ENOENT error code and propagate it back to
the user.

Fixes: #14082
(cherry picked from commit a25457f5b7689265bd2235c4da218896e7c5c1d0)
(cherry picked from commit 8b1bd17469892de5838509c6794a8a38432c01b0)
src/systemctl/systemctl.c