]> git.ipfire.org Git - thirdparty/shadow.git/commit
Revert "src/usermod.c: Remove optimizations"
authorAlejandro Colomar <alx@kernel.org>
Fri, 16 Jan 2026 23:56:21 +0000 (00:56 +0100)
committerAlejandro Colomar <alx@kernel.org>
Mon, 19 Jan 2026 13:27:28 +0000 (14:27 +0100)
commit759fc9a4857c167a6fd2df26d036cc329d86a1bf
tree869f65c5854822270327a83a9db0b7b5b23845a4
parent167a6b7a750a3e0a72119f502eb2aa1c42859eb8
Revert "src/usermod.c: Remove optimizations"

This wasn't only an optimization; it also skipped some checks that were
now spuriously triggering errors.  We may be able to get rid of the
optimizations, but that will need more analysis.  For now, let's revert
to a known-good state.

Fixes: 6a8a25dc7de6 (2025-10-15; "src/usermod.c: Remove optimizations")
Reverts: 6a8a25dc7de6 (2025-10-15; "src/usermod.c: Remove optimizations")
Closes: <https://github.com/shadow-maint/shadow/issues/1509>
Reported-by: Adam Williamson <awilliam@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Cherry-picked-from: d25bbc48d607 (2026-01-19; "Revert "src/usermod.c: Remove optimizations"")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/usermod.c