]> git.ipfire.org Git - thirdparty/systemd.git/commit
sysusers: cross-check user and group names too
authorLuca BRUNO <luca.bruno@coreos.com>
Thu, 3 Nov 2022 15:11:00 +0000 (15:11 +0000)
committerLuca BRUNO <luca.bruno@coreos.com>
Thu, 3 Nov 2022 15:11:00 +0000 (15:11 +0000)
commit4ae3e8c9dbd8aa25c404eb47e4e1962fe9b03c78
treeb7b74ddd228b16bada8b47ea3d5049d9c49541ac
parent6c83054c0133eb53245e479d71589dceff76cf74
sysusers: cross-check user and group names too

This adds an additional name check when cross-matching new group
entries against existing users, which allows coalescing entries
matching both ID and name.
It provides a small idempotence enhancement when creating groups
in cases where matching user entries are in place. By fine-tuning
the conflict detection logic, this avoids picking up new random
IDs and correctly prefers configuration values instead.
src/sysusers/sysusers.c