git: bb625fc2ac80 - main - libpam: Additional module directory.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 May 2025 14:27:24 UTC
The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=bb625fc2ac801d0a06ef0edab37a9bdaf209f008 commit bb625fc2ac801d0a06ef0edab37a9bdaf209f008 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2025-05-31 14:26:50 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2025-05-31 14:27:17 +0000 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 a608cf87c7eb..b34364b13888 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