]> git.ipfire.org Git - thirdparty/systemd.git/commit
nss-systemd: add unit test for sg_adm/sg_mem 40218/head
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 4 Jan 2026 11:19:22 +0000 (12:19 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 4 Jan 2026 17:01:36 +0000 (18:01 +0100)
commit2eaca3ea5f0de702382d388d3bbc753c000ada4b
tree25943e64f0ae46ef71effcd4d83b14afde12479c
parent57682793dac269994d6e69f7a5a937f5ad459cc8
nss-systemd: add unit test for sg_adm/sg_mem

Add a test for getsgnam_r to verify that sg_adm and sg_mem always point
to a NULL-terminated string vector.

Extend the gr_mem check of struct group for non-NULL values as well.
src/shared/nss-util.h
src/test/test-nss-users.c