From: Alejandro Colomar Date: Thu, 15 Jan 2026 00:14:46 +0000 (+0100) Subject: lib/chkhash.c: is_valid_hash(): Update comment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce404a7a831de911cf20fc8d4c548957f70bc72;p=thirdparty%2Fshadow.git lib/chkhash.c: is_valid_hash(): Update comment This checks the entire shadow(5) 2nd field, which is more than just a hash. Reported-by: Tobias Stoeckmann Signed-off-by: Alejandro Colomar --- diff --git a/lib/chkhash.c b/lib/chkhash.c index d0a8dc011..1723f862c 100644 --- a/lib/chkhash.c +++ b/lib/chkhash.c @@ -31,9 +31,7 @@ match_regex(const char *pattern, const char *string) /* - * is_valid_hash - check if the given string is a valid password hash - * - * Returns true if the string appears to be a valid hash, false otherwise. + * is_valid_hash - check if the string is a valid shadow(5) 2nd field. * * regex from: https://man.archlinux.org/man/crypt.5.en */