From 4c69644ea797066141fe1f14da613cd114893237 Mon Sep 17 00:00:00 2001 From: sndev Date: Tue, 19 Sep 2006 09:59:03 +0000 Subject: [PATCH] Give fbsd users a possibility to use desklock. system-auth profile is not presented on fbsd, but login is there. SVN revision: 25973 --- src/bin/e_desklock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c index 9b0164998..495a7095a 100644 --- a/src/bin/e_desklock.c +++ b/src/bin/e_desklock.c @@ -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";