aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_lastlog
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-14 00:25:52 +0100
committerBenny Baumann <BenBE@geshi.org>2023-11-14 00:27:49 +0100
commit4b422aefe9499a2b4eb75517bd44f4849e8aa078 (patch)
treedbdd050dc6007ceefa9b6b666f51d505af860976 /modules/pam_lastlog
parentbb9d1a209182d8cec8dfb9200eb8a9d8e0d1bc67 (diff)
downloadpam-4b422aefe9499a2b4eb75517bd44f4849e8aa078.tar.gz
pam-4b422aefe9499a2b4eb75517bd44f4849e8aa078.tar.bz2
pam-4b422aefe9499a2b4eb75517bd44f4849e8aa078.zip
pam_lastlog: 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>
Diffstat (limited to 'modules/pam_lastlog')
-rw-r--r--modules/pam_lastlog/pam_lastlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_lastlog/pam_lastlog.c b/modules/pam_lastlog/pam_lastlog.c
index 831dbe3b..f255b9dd 100644
--- a/modules/pam_lastlog/pam_lastlog.c
+++ b/modules/pam_lastlog/pam_lastlog.c
@@ -779,7 +779,7 @@ pam_sm_open_session(pam_handle_t *pamh, int flags,
pwd = pam_modutil_getpwnam (pamh, user);
if (pwd == NULL) {
- D(("couldn't identify user %s", user));
+ D(("couldn't identify user %s", (const char *) user));
return PAM_USER_UNKNOWN;
}
uid = pwd->pw_uid;