Skip to content

Commit 051940e

Browse files
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 <tobias@stoeckmann.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
1 parent bdf93b2 commit 051940e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/chkhash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ match_regex(const char *pattern, const char *string)
3333
/*
3434
* is_valid_hash - check if the given string is a valid password hash
3535
*
36-
* Returns true if the string appears to be a valid hash, false otherwise.
36+
* Returns true if the string appears to be a valid shadow(5) 2nd field.
3737
*
3838
* regex from: https://man.archlinux.org/man/crypt.5.en
3939
*/

0 commit comments

Comments
 (0)