]> git.ipfire.org Git - thirdparty/systemd.git/commit
userdb: fix enumeration of .membership files
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 26 Jun 2025 00:42:16 +0000 (09:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 27 Jun 2025 18:54:48 +0000 (03:54 +0900)
commitd6570eafe3b86584ca42979d1ced5bfd2228a5c7
tree7e8ce8eb1fd896572b828633be1e9d78434c4db7
parente93d8c844c58f00e30dacac7d3b013964e8674c3
userdb: fix enumeration of .membership files

The man page nss-systemd(8) says

> The contents of these files are currently not read, and the files
> should be created empty.

But previously we filtered out such files, as the CONF_FILES_FILTER_MASKED
flag checks if a file is empty (or symlink to null), thus any empty files
were ignored.

To accept empty .membership files, let's use CONF_FILES_FILTER_MASKED_BY_SYMLINK.

Fixes #37945.
src/shared/userdb.c