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 13:22:05 +0000 (14:22 +0100)
commit8b1bd17469892de5838509c6794a8a38432c01b0
tree4a818d509271e0601dea6443b87793add136b366
parentb2f342f92b5447b68c5c61a1d078c62f26ddfd20
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)
src/systemctl/systemctl.c