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:
sndev 2006-09-19 09:59:03 +00:00 committed by sndev
parent 6243868e31
commit 4c69644ea7
1 changed files with 5 additions and 1 deletions

View File

@ -650,8 +650,12 @@ _desklock_pam_init(E_Desklock_Auth *da)
da->pam.conv.appdata_ptr = da;
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";
#endif
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";