From 669bd88783d9799a8b9303006e40bab324dcc42e Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 11 Nov 2023 14:44:13 +0100 Subject: 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 --- libpam/pam_dispatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libpam/pam_dispatch.c') 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; -- cgit v1.2.3