]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/sysusers/sysusers.c
sysusers: properly process user entries with an explicit GID
authorLuca BRUNO <luca.bruno@coreos.com>
Mon, 8 Aug 2022 15:56:06 +0000 (15:56 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 8 Aug 2022 19:58:32 +0000 (04:58 +0900)
commit5ed47c4d230b9491339c16c6ea4181dfd293bc98
tree76ce3b388e6b037f4b42f6e825014231e4601d46
parent6b6e45eb7386bb4399746b70f6f606caea450fed
sysusers: properly process user entries with an explicit GID

This tweaks user creation logic to properly take into consideration
an explicitly requested GID.
It fixes a bug where the creation flow would mistakenly fall back
to use the username instead, resulting in wrong lookups in case of
users and groups using the same name.
src/sysusers/sysusers.c