]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/passwd.c: check password length upper limit
authorTomas Halman <tomas@halman.net>
Fri, 16 Feb 2024 08:52:39 +0000 (09:52 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 16 Feb 2024 21:46:08 +0000 (15:46 -0600)
commite15aa5a8a649acbf81449b5b4229eda255f97c9e
tree8e2419ef2509a3a0b3aa770e795ff211728689ba
parentdfb4d8fdf914a9f4d0f305980b76825a773d9150
src/passwd.c: check password length upper limit

The passwd silently truncated the password length to PASS_MAX.
This patch introduces check that prints an error message
and exits the call.

Signed-off-by: Tomas Halman <tomas@halman.net>
src/passwd.c