Skip to content

Commit bce404a

Browse files
alejandro-colomarikerexxe
authored andcommitted
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 9b67543 commit bce404a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/chkhash.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ match_regex(const char *pattern, const char *string)
3131

3232

3333
/*
34-
* is_valid_hash - check if the given string is a valid password hash
35-
*
36-
* Returns true if the string appears to be a valid hash, false otherwise.
34+
* is_valid_hash - check if the string is a valid shadow(5) 2nd field.
3735
*
3836
* regex from: https://man.archlinux.org/man/crypt.5.en
3937
*/

0 commit comments

Comments
 (0)