aboutsummaryrefslogtreecommitdiff
path: root/libpam/pam_dispatch.c
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-11 14:44:13 +0100
committerDmitry V. Levin <ldv@strace.io>2023-11-13 13:24:08 +0000
commit669bd88783d9799a8b9303006e40bab324dcc42e (patch)
treea2bd506092c824fdf4f81e7f45b064842aa428ba /libpam/pam_dispatch.c
parentf800c5a8533003be7df56e6253821cf145f1a725 (diff)
downloadpam-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.c3
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;