]> git.ipfire.org Git - thirdparty/systemd.git/commit
userwork: properly handle ENOLINK error from lower-level userdb code
authorLennart Poettering <lennart@poettering.net>
Mon, 8 Nov 2021 15:43:07 +0000 (16:43 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 8 Nov 2021 20:40:30 +0000 (21:40 +0100)
commite908961d2eba7adb335e7f36c37c39e2e96773d2
treecabfd345572ff03132608b1dd494a79bd352f45c
parent5c12ee3656a1fda84188f772790933e8c98168e6
userwork: properly handle ENOLINK error from lower-level userdb code

The lower-level userdb code will return ENOLINK if varlink lookups are
disabled explicitly and we couldn#t find an answer any other way. Let's
not propagate this to clients, since they don't have control over this
feature anyway: we decide internally when to disable varlink lookups
(e.g. if DropIn lookups are requested we disable them) and to the client
side that should not be visible: if we can't find a record with the
flags we pick then we should report then we can't find any, and that's
it.

Fixes: #21223
src/userdb/userwork.c