]> git.ipfire.org Git - thirdparty/systemd.git/commit
nss-systemd: properly handle empty membership lists 19531/head
authorLennart Poettering <lennart@poettering.net>
Wed, 5 May 2021 16:57:30 +0000 (18:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 May 2021 07:15:40 +0000 (09:15 +0200)
commita1aa41e4e175c2712b97600d7e10e9d6c58e5543
treeae1ff4eb18d3c072278544db01a31fc0c708466f
parent1fdfca4da739f47516513afc66d4c7008c9badfd
nss-systemd: properly handle empty membership lists

When we are queried for membership lists on a system that has exactly
zero, then we'll return ESRCH immediately instead of at EOF. Which is
OK, but we need to handle this in various places, and not get confused
by it.
src/nss-systemd/nss-systemd.c
src/nss-systemd/userdb-glue.c