diff options
author | vorlon <Unknown> | 2007-08-20 02:01:01 +0000 |
---|---|---|
committer | vorlon <Unknown> | 2007-08-20 02:01:01 +0000 |
commit | 6c6562416ee560ba029ef0b8d431a88313c9f07a (patch) | |
tree | f28e8e5fdf5ea139a4c3324bc7dd6af787dcf966 | |
parent | 4e62b44fce598149951c745148f088be04bb8810 (diff) | |
download | pam-6c6562416ee560ba029ef0b8d431a88313c9f07a.tar.gz pam-6c6562416ee560ba029ef0b8d431a88313c9f07a.tar.bz2 pam-6c6562416ee560ba029ef0b8d431a88313c9f07a.zip |
get the arguments to pam_modutil_tty_secure() right, and do the type-punned
pointer dance
-rw-r--r-- | patches-applied/055_pam_unix_nullok_secure | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/patches-applied/055_pam_unix_nullok_secure b/patches-applied/055_pam_unix_nullok_secure index 22edbd0f..70b981e3 100644 --- a/patches-applied/055_pam_unix_nullok_secure +++ b/patches-applied/055_pam_unix_nullok_secure @@ -36,12 +36,12 @@ Index: Linux-PAM/modules/pam_unix/support.c + if ((retval == 1) && on(UNIX_NULLOK_SECURE, ctrl)) { + int retval2; -+ const char *uttyname; -+ retval2 = pam_get_item(pamh, PAM_TTY, (const void **)&uttyname); ++ const void *uttyname; ++ retval2 = pam_get_item(pamh, PAM_TTY, &uttyname); + if (retval2 != PAM_SUCCESS || uttyname == NULL) + return 0; + -+ if (pam_modutil_tty_secure(uttyname) != PAM_SUCCESS) ++ if (pam_modutil_tty_secure(pamh, (const char *)uttyname) != PAM_SUCCESS) + return 0; + } + |