forked from enlightenment/enlightenment
parent
4c69644ea7
commit
412da4cdb2
|
@ -651,14 +651,11 @@ _desklock_pam_init(E_Desklock_Auth *da)
|
|||
da->pam.handle = NULL;
|
||||
|
||||
/* try other pam profiles - and system-auth (login for fbsd users) is a fallback */
|
||||
#ifdef __FreeBSD__
|
||||
pam_prof = "login"
|
||||
#else
|
||||
pam_prof = "system-auth";
|
||||
#endif
|
||||
pam_prof = "login";
|
||||
if (ecore_file_exists("/etc/pam.d/enlightenment")) pam_prof = "enlightenment";
|
||||
if (ecore_file_exists("/etc/pam.d/xscreensaver")) pam_prof = "xscreensaver";
|
||||
if (ecore_file_exists("/etc/pam.d/kscreensaver")) pam_prof = "kscreensaver";
|
||||
if (ecore_file_exists("/etc/pam.d/system-auth")) pam_prof = "system-auth";
|
||||
|
||||
if ((pamerr = pam_start(pam_prof, da->user, &(da->pam.conv),
|
||||
&(da->pam.handle))) != PAM_SUCCESS)
|
||||
|
|
Loading…
Reference in New Issue