]> git.ipfire.org Git - thirdparty/systemd.git/commit
userdbd: simplify logic for generating NSS listings 19538/head
authorLennart Poettering <lennart@poettering.net>
Thu, 6 May 2021 14:01:44 +0000 (16:01 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 May 2021 20:19:41 +0000 (22:19 +0200)
commit134ff8f4d1bbfe189957fb9418d88392ab315867
tree4848a883d785d74cae573dd589f91eea9d93dcfb
parentb214825433ba716ec87a0cafb8cbf9870efc21c1
userdbd: simplify logic for generating NSS listings

So far we basically had two ways to iterate through NSS records: one via
the varlink IPC and one via the userdb.[ch] infra, with slightly
different implementations.

Let's clean this up, and always use userdb.[ch] also when resolving via
userdbd. The different codepaths for the NameServiceSwitch and the
Multiplexer varlink service now differ only in the different flags
passed to the userdb lookup.

Behaviour shouldn't change by this. This is mostly refactoring, reducing
redundant codepaths.
src/shared/userdb.h
src/userdb/userwork.c