diff options
author | Benny Baumann <BenBE@geshi.org> | 2023-11-11 14:44:13 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-11-13 13:24:08 +0000 |
commit | 669bd88783d9799a8b9303006e40bab324dcc42e (patch) | |
tree | a2bd506092c824fdf4f81e7f45b064842aa428ba /libpam/pam_dispatch.c | |
parent | f800c5a8533003be7df56e6253821cf145f1a725 (diff) | |
download | pam-669bd88783d9799a8b9303006e40bab324dcc42e.tar.gz pam-669bd88783d9799a8b9303006e40bab324dcc42e.tar.bz2 pam-669bd88783d9799a8b9303006e40bab324dcc42e.zip |
libpam: print module name in debug error message
Previously, there was a missing argument to the debug output within
_pam_dispatch whe _pam_dispatch_aux returned an error. This updates
the debug message in that situation to include the module name that
was involved with the failure.
Signed-off-by: Benny Baumann <BenBE@geshi.org>
Diffstat (limited to 'libpam/pam_dispatch.c')
-rw-r--r-- | libpam/pam_dispatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpam/pam_dispatch.c b/libpam/pam_dispatch.c index d4777061..31a28be3 100644 --- a/libpam/pam_dispatch.c +++ b/libpam/pam_dispatch.c @@ -429,7 +429,8 @@ int _pam_dispatch(pam_handle_t *pamh, int flags, int choice) /* Should we recall where to resume next time? */ if (retval == PAM_INCOMPLETE) { - D(("module [%d] returned PAM_INCOMPLETE")); + D(("module [%s] returned PAM_INCOMPLETE", + pamh->mod_name ? pamh->mod_name : "(NULL)")); pamh->former.choice = choice; } else { pamh->former.choice = PAM_NOT_STACKED; |