]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/chkhash.c: is_valid_hash(): Accept a leading '!'
authorAlejandro Colomar <alx@kernel.org>
Wed, 7 Jan 2026 22:39:53 +0000 (23:39 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 8 Jan 2026 02:01:02 +0000 (20:01 -0600)
commit87ec7a52ab25dd6e91253c274fd651f16844cf2a
tree5798f0f2da3da14c57d1c948d778fee59d6e00b4
parent6d983709fae489185bee954236919b5f05e5c602
lib/chkhash.c: is_valid_hash(): Accept a leading '!'

A leading '!' means that the account is locked.

Fixes: c44f1e096a19 (2025-07-20; "chpasswd: Check hash before write when using -e")
Link: <https://github.com/shadow-maint/shadow/issues/1483>
Link: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1124835>
Reported-by: Chris Hofstaedtler <zeha@debian.org>
Reviewed-by: Chris Hofstaedtler <zeha@debian.org>
Cc: vinz <mmpx09@protonmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/chkhash.c