git: 39f039512f8b - stable/13 - libpam: Additional module directory.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 Jun 2025 10:58:54 UTC
The branch stable/13 has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=39f039512f8bad0401481eacaf285b77ec5dbb70
commit 39f039512f8bad0401481eacaf285b77ec5dbb70
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-06-07 06:50:38 +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
(cherry picked from commit bb625fc2ac801d0a06ef0edab37a9bdaf209f008)
---
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 52f353570c40..19179a44184a 100644
--- a/contrib/openpam/lib/libpam/openpam_constants.c
+++ b/contrib/openpam/lib/libpam/openpam_constants.c
@@ -178,9 +178,11 @@ const char *openpam_module_path[] = {
#elif COMPAT_32BIT
"/usr/lib32",
"/usr/local/lib32",
+ "/usr/local/lib32/security",
#else
"/usr/lib",
"/usr/local/lib",
+ "/usr/local/lib/security",
#endif
NULL
};