Hopefully fix build breakage with gcc passing void * instead of char *

to "%s" format string after r272280.

PR:		83099 193927
MFC after:	3 days
X-MFC with:	r272280
This commit is contained in:
bz 2014-09-29 10:36:14 +00:00
parent cb586e6a88
commit 3e09082bfd

View File

@ -94,7 +94,8 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags __unused,
PAM_VERBOSE_ERROR("%s is not allowed to log in on %s",
user, tty);
} else {
PAM_LOG("Checking login.access for user %s", user);
PAM_LOG("Checking login.access for user %s",
(const char *)user);
if (login_access(user, "***unknown***") != 0)
return (PAM_SUCCESS);
PAM_VERBOSE_ERROR("%s is not allowed to log in", user);