From 412da4cdb2c88e71e222ead7ca46ea94cd46e709 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 19 Sep 2006 12:26:31 +0000 Subject: [PATCH] do this without a #ifdef SVN revision: 25974 --- src/bin/e_desklock.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)