Skip to content

Commit 0f41cd7

Browse files
committed
pam_get_item() takes a void ** arg, not const void **, on Solaris
1 parent 8b53757 commit 0f41cd7

File tree

1 file changed

+1
-1
lines changed
  • plugins/sudoers/auth

1 file changed

+1
-1
lines changed

plugins/sudoers/auth/pam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ sudo_pam_verify(const struct sudoers_context *ctx, struct passwd *pw,
339339
switch (*pam_status) {
340340
case PAM_SUCCESS:
341341
/* Verify user did not change during PAM transaction. */
342-
rc = pam_get_item(pamh, PAM_USER, (const void **)&pam_user);
342+
rc = pam_get_item(pamh, PAM_USER, (PAM_CONST void **)&pam_user);
343343
if (rc == PAM_SUCCESS &&
344344
(pam_user == NULL || strcmp(pam_user, pw->pw_name) != 0)) {
345345
sudo_debug_printf(SUDO_DEBUG_WARN|SUDO_DEBUG_LINENO,

0 commit comments

Comments
 (0)