2010-03-05 11:54:32 +01:00
|
|
|
Index: src/auth.c
|
|
|
|
===================================================================
|
|
|
|
--- src/auth.c.orig
|
|
|
|
+++ src/auth.c
|
|
|
|
@@ -554,6 +554,6 @@ pam_sm_setcred(pam_handle_t *pamh, int f
|
2009-02-04 00:17:30 +01:00
|
|
|
if (flags & PAM_DELETE_CRED) {
|
|
|
|
return pam_sm_close_session(pamh, flags, argc, argv);
|
|
|
|
}
|
|
|
|
- warn("pam_setcred() called with no flags");
|
|
|
|
- return PAM_SERVICE_ERR;
|
|
|
|
+ warn("pam_setcred() called with no flags. Assume PAM_ESTABLISH_CRED");
|
|
|
|
+ return pam_sm_open_session(pamh, (flags | PAM_ESTABLISH_CRED), argc, argv);
|
|
|
|
}
|