]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/chkhash.c: is_valid_hash(): Accept '*' as the hash
authorAlejandro Colomar <alx@kernel.org>
Wed, 7 Jan 2026 22:44:26 +0000 (23:44 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 8 Jan 2026 02:01:02 +0000 (20:01 -0600)
commitddc2549f87e3001f663d5179e9b6d7fe2e1f3b3f
tree7eb8bb27d216e7fba837c29dc28a53fb83b847e3
parent87ec7a52ab25dd6e91253c274fd651f16844cf2a
lib/chkhash.c: is_valid_hash(): Accept '*' as the hash

This is widely accepted as an invalid hash, to remove password access
for an account (that is, no passwords will match the "hash").

Fixes: c44f1e096a19 (2025-07-20; "chpasswd: Check hash before write when using -e")
Closes: <https://github.com/shadow-maint/shadow/issues/1483>
Closes: <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