From 085b6b2ec74ff10c8dcda63f4b9713885362a8a4 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Mon, 13 Nov 2023 14:09:07 +0100 Subject: pam_mkhomedir: ensure correct argument type when printing debug output While the underlying type for setting the user was correct, the additional output neglected to include the type cast necessary when actually printing the data. This is rectified here. Signed-off-by: Benny Baumann --- modules/pam_mkhomedir/pam_mkhomedir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/pam_mkhomedir') diff --git a/modules/pam_mkhomedir/pam_mkhomedir.c b/modules/pam_mkhomedir/pam_mkhomedir.c index 6ddcd5a8..72fa7840 100644 --- a/modules/pam_mkhomedir/pam_mkhomedir.c +++ b/modules/pam_mkhomedir/pam_mkhomedir.c @@ -242,7 +242,7 @@ pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, if (pwd == NULL) { pam_syslog(pamh, LOG_NOTICE, "User unknown."); - D(("couldn't identify user %s", user)); + D(("couldn't identify user %s", (const char *) user)); return PAM_USER_UNKNOWN; } -- cgit v1.2.3