git: pam_exec: Use program exit status as return code

Peter Avalos pavalos at
Wed Jul 11 03:28:53 PDT 2012

commit f37265ed2a9f1e685c6bcbe8ffe212f4d4d450b0
Author: Peter Avalos <pavalos at>
Date:   Wed Jul 11 03:01:44 2012 -0700

    pam_exec: Use program exit status as return code
    pam_exec(8) now accepts a new option "return_prog_exit_status". When
    set, the program exit status is used as the pam_exec return code. It
    allows the program to tell why the step failed (eg. user unknown).
    However, if it exits with a code not allowed by the calling PAM service
    module function (see $PAM_SM_FUNC below), a warning is logged and
    PAM_SERVICE_ERR is returned.
    Obtained-from:  FreeBSD

Summary of changes:
 lib/pam_module/pam_exec/pam_exec.8 |   86 ++++++++-
 lib/pam_module/pam_exec/pam_exec.c |  364 ++++++++++++++++++++++++++++++++----
 2 files changed, 410 insertions(+), 40 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list