userdb: return ESRCH if we didn't find a single varlink service
authorLennart Poettering <lennart@poettering.net>
Wed, 5 May 2021 20:06:34 +0000 (22:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 May 2021 16:08:38 +0000 (18:08 +0200)
commit58dbf4c925aadf92a2de62943648b76ae1063c4a
treeecff06886b40df2b88542b590b5386c2bba2b4fc
parenta346a34f7ffe3101761717b672f71c3aca3e3e0a
userdb: return ESRCH if we didn't find a single varlink service

Clearly communicate to callers that we didn't find a single varlink
service, when a lookup is attempted. Note that the fallback's to NSS,
drop-ins and synthesis might eat up this error again, but we should
really make this case reasonably recognizable, in particular as our
various tools already handle this condition correctly and print a nice
message then.
src/shared/userdb.c