Skip to content

Commit 7e60f6d

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 <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]>
1 parent 12cc0aa commit 7e60f6d

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)