]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/passwd.c: inconsistent password length limit
authorTomas Halman <tomas@halman.net>
Fri, 16 Feb 2024 08:33:02 +0000 (09:33 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 16 Feb 2024 21:46:08 +0000 (15:46 -0600)
commitdfb4d8fdf914a9f4d0f305980b76825a773d9150
tree24fafbc80b3e1dd104cf409a3e31f469adfb337a
parent0259f84583a85f809a279bb2844081c7e49aeb3d
src/passwd.c: inconsistent password length limit

The passwd utility had hardcoded limit for password lenght set
to 200 characters. In the agetpass.c is used PASS_MAX for
this purpose.

This patch moves the PASS_MAX definition to common place
and uses it in both places.

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