diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c index 495a7095a..1766bfa13 100644 --- a/src/bin/e_desklock.c +++ b/src/bin/e_desklock.c @@ -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)