Give fbsd users a possibility to use desklock. system-auth profile is not presented on
fbsd, but login is there. SVN revision: 25973
This commit is contained in:
parent
6243868e31
commit
4c69644ea7
|
@ -650,8 +650,12 @@ _desklock_pam_init(E_Desklock_Auth *da)
|
||||||
da->pam.conv.appdata_ptr = da;
|
da->pam.conv.appdata_ptr = da;
|
||||||
da->pam.handle = NULL;
|
da->pam.handle = NULL;
|
||||||
|
|
||||||
/* try other pam profiles - and system-auth is a fallback */
|
/* try other pam profiles - and system-auth (login for fbsd users) is a fallback */
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
pam_prof = "login"
|
||||||
|
#else
|
||||||
pam_prof = "system-auth";
|
pam_prof = "system-auth";
|
||||||
|
#endif
|
||||||
if (ecore_file_exists("/etc/pam.d/enlightenment")) pam_prof = "enlightenment";
|
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/xscreensaver")) pam_prof = "xscreensaver";
|
||||||
if (ecore_file_exists("/etc/pam.d/kscreensaver")) pam_prof = "kscreensaver";
|
if (ecore_file_exists("/etc/pam.d/kscreensaver")) pam_prof = "kscreensaver";
|
||||||
|
|
Loading…
Reference in New Issue