aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-13 14:09:07 +0100
committerBenny Baumann <BenBE@geshi.org>2023-11-14 00:27:49 +0100
commit085b6b2ec74ff10c8dcda63f4b9713885362a8a4 (patch)
treea4a940d7f49e9965491bf9ea38db77db02ea6593
parent4b422aefe9499a2b4eb75517bd44f4849e8aa078 (diff)
downloadpam-085b6b2ec74ff10c8dcda63f4b9713885362a8a4.tar.gz
pam-085b6b2ec74ff10c8dcda63f4b9713885362a8a4.tar.bz2
pam-085b6b2ec74ff10c8dcda63f4b9713885362a8a4.zip
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 <BenBE@geshi.org>
-rw-r--r--modules/pam_mkhomedir/pam_mkhomedir.c2
1 files changed, 1 insertions, 1 deletions
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;
}