mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
userdb: fix if-else to allow NameServiceSwitch lookups
Fixes: #20809. Bug introduced in 8fbb1941f1
This commit is contained in:
parent
469fd57f18
commit
cf7c7512f5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user