Dr. Werner Fink 2021-08-19 08:31:48 +00:00 committed by Git OBS Bridge
parent debaee35a6
commit 0de8192794

View File

@ -40,8 +40,8 @@
return login_ok ? PAM_SUCCESS : PAM_AUTH_ERR;
}
+
+PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc __unused, const
+ char **argv __unused) {
+PAM_EXTERN int pam_sm_setcred(pam_handle_t *pamh, int flags, int argc __attribute__((unused)), const
+ char **argv __attribute__((unused))) {
+ int rc = ((flags & PAM_ESTABLISH_CRED) ? PAM_SUCCESS :
+ (flags & PAM_REINITIALIZE_CRED) ? PAM_SUCCESS :
+ (flags & PAM_REFRESH_CRED) ? PAM_SUCCESS :