]> git.ipfire.org Git - thirdparty/shadow.git/commit
passwd: document exit code when PAM has errored
authorSerge Hallyn <serge@hallyn.com>
Sat, 22 Mar 2025 12:54:27 +0000 (07:54 -0500)
committerAlejandro Colomar <alx@kernel.org>
Mon, 24 Mar 2025 11:03:28 +0000 (12:03 +0100)
commitb0ccad2527fdc191fa909ce0f229e115142cda4a
tree5d795b62527561ae75dff058b502d6f9046df92e
parentab89ca47fd8250abcdb8a4677d1998d9547be939
passwd: document exit code when PAM has errored

closes #1219

When pam returns an error, we were exiting with exit code 10,
which was hardcoded and not documented.  Create a name for it,
and document it in the manpage.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
Reported-by: Marc Haber <githubvisible@zugschlus.de>
Reviewed-by: Alejandro Colomar <alx@kernel.org>
lib/pam_pass.c
man/passwd.1.xml
src/passwd.c