diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-17 15:03:16 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-10-18 08:45:45 +0200 |
commit | b08d86dc4a5179ca879074a83de48c69f289612e (patch) | |
tree | c0ec0d797048201edc2d001c2b3c52f1c481aa66 /shell-completion | |
parent | f6cce15bb30af0d28670e443ced9db7f402f1404 (diff) | |
download | systemd-b08d86dc4a5179ca879074a83de48c69f289612e.tar.gz |
analyze: use DumpUnitsMatchingPatternsByFileDescriptor
Similarly to DumpByFileDescriptor vs Dump,
DumpUnitsMatchingPatternsByFileDescriptor is used in preference. Dissimilarly,
a fallback to DumpUnitsMatchingPatterns is not done on error, because there is
no need for backwards compatibility.
The code is still more verbose than I'd like, but there are four different code
paths with slightly different rules in each case, so it's hard to make this all
very brief. Since we have a separate file dedicated to making those calls, the
verbose-but-easy-to-follow implementation should be OK.
Closes #24989.
I only did a quick test that all both variants works locally and over ssh.
Diffstat (limited to 'shell-completion')
0 files changed, 0 insertions, 0 deletions