]> git.ipfire.org Git - thirdparty/systemd.git/commit
user-util: tweak to in_gid()
authorLennart Poettering <lennart@poettering.net>
Thu, 31 Oct 2019 19:27:34 +0000 (20:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 31 Oct 2019 19:59:27 +0000 (20:59 +0100)
commit6e0a3888541d08e34f02ccaf2a86940d266c9f01
treef82f2aec356e1439b9a1bc61bfa6d2ca4f25d835
parent3ec56e53a2f83f07ffdd10343ace6d604717c1f0
user-util: tweak to in_gid()

Let's make this robust towards parallel updates to group lists. This is
not going to happen IRL, but it makes me sleep better at night: let's
iterate a couple of times in case the list is updated while we are at
it.

Follow-up for: f5e0b942af1e86993c21f4e5c84342bb10403dac
src/basic/user-util.c