do this without a #ifdef

SVN revision: 25974
This commit is contained in:
Carsten Haitzler 2006-09-19 12:26:31 +00:00
parent 4c69644ea7
commit 412da4cdb2
1 changed files with 2 additions and 5 deletions

View File

@ -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)