diff options
author | Dan Streetman <ddstreet@canonical.com> | 2021-09-21 23:47:55 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2021-09-22 23:34:37 +0200 |
commit | cf7c7512f588a5e93908cc9114cf25d9dabb2445 (patch) | |
tree | f13ddba9787bbe5f3ca1121642ba7cdadcaf6d0d /src/userdb | |
parent | sd-dhcp6-client: ignore IAs whose IAID do not match client's IAID (diff) | |
download | systemd-cf7c7512f588a5e93908cc9114cf25d9dabb2445.tar.xz systemd-cf7c7512f588a5e93908cc9114cf25d9dabb2445.zip |
userdb: fix if-else to allow NameServiceSwitch lookups
Fixes: #20809. Bug introduced in 8fbb1941f1a8c3d9eda920891b2b51a67f2a2375
Diffstat (limited to 'src/userdb')
-rw-r--r-- | src/userdb/userwork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userdb/userwork.c b/src/userdb/userwork.c index 4520d2fd16..3e670d61f7 100644 --- a/src/userdb/userwork.c +++ b/src/userdb/userwork.c @@ -119,7 +119,7 @@ static int userdb_flags_from_service(Varlink *link, const char *service, UserDBF if (streq_ptr(service, "io.systemd.NameServiceSwitch")) *ret = USERDB_NSS_ONLY|USERDB_AVOID_MULTIPLEXER; - if (streq_ptr(service, "io.systemd.DropIn")) + else if (streq_ptr(service, "io.systemd.DropIn")) *ret = USERDB_DROPIN_ONLY|USERDB_AVOID_MULTIPLEXER; else if (streq_ptr(service, "io.systemd.Multiplexer")) *ret = USERDB_AVOID_MULTIPLEXER; |