]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/, src/: Turn error counters into flags
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 20 Jan 2025 18:39:12 +0000 (19:39 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 22 Jan 2025 09:33:42 +0000 (10:33 +0100)
commit3e4b3d385dfca1b2c64eadd793705dd4fae3b297
treebe22e9b6bdea721a2f6853b8a50ca2be55c4e3ed
parent6ef84cca65eba4e056fe1d2de3bfd6cfc7ded740
lib/, src/: Turn error counters into flags

If we are not interested in the amount of errors but only if errors
exist, use a flag instead of a counter. This eliminates the chance of
signed integer overflows and better reflects the meaning of variable.

Keeping variable name and basically copied from src/faillog.c.

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
lib/commonio.c
src/chgpasswd.c
src/chpasswd.c
src/grpck.c
src/pwck.c
src/useradd.c
src/userdel.c
src/usermod.c