git: d00a98d639ca - main - libpam: Tweak libcompat case.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 May 2025 12:49:08 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=d00a98d639ca2e977d6f3396d7c429cb2f836c49
commit d00a98d639ca2e977d6f3396d7c429cb2f836c49
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2025-05-31 12:48:34 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2025-05-31 12:48:34 +0000
libpam: Tweak libcompat case.
Fixes: 45538173c120
---
contrib/openpam/lib/libpam/openpam_constants.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/openpam/lib/libpam/openpam_constants.c b/contrib/openpam/lib/libpam/openpam_constants.c
index 7129fc0db43b..a608cf87c7eb 100644
--- a/contrib/openpam/lib/libpam/openpam_constants.c
+++ b/contrib/openpam/lib/libpam/openpam_constants.c
@@ -179,7 +179,9 @@ const char *openpam_module_path[] = {
OPENPAM_MODULES_DIRECTORY,
#elif defined(COMPAT_libcompat)
"/usr/lib" COMPAT_libcompat,
- "/usr/local/lib" COMPAT_libcompat,
+#ifdef LOCALBASE
+ LOCALBASE "/lib" COMPAT_libcompat,
+#endif
#else
"/usr/lib",
#ifdef LOCALBASE