sysusers: only check whether the requested GID is available
authorLuca BRUNO <luca.bruno@coreos.com>
Mon, 8 Aug 2022 15:52:33 +0000 (15:52 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 8 Aug 2022 19:58:15 +0000 (04:58 +0900)
commit6b6e45eb7386bb4399746b70f6f606caea450fed
treec0ce7f9ee5a304255a57ba72af89ecebd95613a4
parenteff6bc92946afececaf3388a7792a7df1fff4793
sysusers: only check whether the requested GID is available

This relaxes the availability check when creating a group, if an
explicit GID has been requested.
It avoids mixing up users and groups entries with valid and unique
UIDs/GIDs, but each having the same ID number.
src/sysusers/sysusers.c