]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/usermod.c: update_group(): Add helper function
authorAlejandro Colomar <alx@kernel.org>
Thu, 16 May 2024 12:12:09 +0000 (14:12 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 20 May 2024 07:37:01 +0000 (09:37 +0200)
commitadf37cccd0fa4ce7d05644514b0af57fe71905c3
tree23e3ed7a5cdb7626935a4fb21458cd239fa1ee24
parentda77a82ecbc90e89808f143e7fa2abb7650f50d7
src/usermod.c: update_group(): Add helper function

Keep the while loop in the outer function, and move the iteration code
to this new helper.  This makes it a bit more readable.

Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/usermod.c