From bb625fc2ac801d0a06ef0edab37a9bdaf209f008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 31 May 2025 16:26:50 +0200 Subject: [PATCH] libpam: Additional module directory. Many if not most ports that install PAM modules install them into ${LOCALBASE}/lib/security instead of just ${LOCALBASE}/lib, because all the world is Linux. Rather than try to fix the ports, add that directory to the search path. MFC after: 1 week Relnotes: yes Reviewed by: delphij Differential Revision: https://reviews.freebsd.org/D50626 --- contrib/openpam/lib/libpam/openpam_constants.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/openpam/lib/libpam/openpam_constants.c b/contrib/openpam/lib/libpam/openpam_constants.c index a608cf87c7e..b34364b1388 100644 --- a/contrib/openpam/lib/libpam/openpam_constants.c +++ b/contrib/openpam/lib/libpam/openpam_constants.c @@ -181,11 +181,13 @@ const char *openpam_module_path[] = { "/usr/lib" COMPAT_libcompat, #ifdef LOCALBASE LOCALBASE "/lib" COMPAT_libcompat, + LOCALBASE "/lib" COMPAT_libcompat "/security", #endif #else "/usr/lib", #ifdef LOCALBASE LOCALBASE "/lib", + LOCALBASE "/lib/security", #endif #endif NULL