aboutsummaryrefslogtreecommitdiff
path: root/libpam
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-03-31 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-03-31 08:00:00 +0000
commitce8aa213b03cc12f10d20d82dbf4aa355123e5c5 (patch)
treebe780cf74a6fde2ea977e1cb1acfe5f1ddc10b77 /libpam
parent78e3988dd377a043c5b6c9a898994be68a8bf6f8 (diff)
downloadpam-ce8aa213b03cc12f10d20d82dbf4aa355123e5c5.tar.gz
pam-ce8aa213b03cc12f10d20d82dbf4aa355123e5c5.tar.bz2
pam-ce8aa213b03cc12f10d20d82dbf4aa355123e5c5.zip
pam_start.c: do not call bindtextdomain() unless nls is enabled
Call bindtextdomain() only when both the function is available and the build is configured with --enable-nls. * libpam/pam_start.c (_pam_start_internal): Guard bindtextdomain() invocation with ENABLE_NLS. Complements: v1.6.0~244 ("pam_start.c: call bindtextdomain() to expose Linux-PAM locales") Resolves: https://github.com/linux-pam/linux-pam/pull/773
Diffstat (limited to 'libpam')
-rw-r--r--libpam/pam_start.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpam/pam_start.c b/libpam/pam_start.c
index b3e90ce1..ef9fdb02 100644
--- a/libpam/pam_start.c
+++ b/libpam/pam_start.c
@@ -25,7 +25,7 @@ static int _pam_start_internal (
D(("called pam_start: [%s] [%s] [%p] [%p]"
,service_name, user, pam_conversation, pamh));
-#ifdef HAVE_BINDTEXTDOMAIN
+#if defined HAVE_BINDTEXTDOMAIN && defined ENABLE_NLS
/* Bind text domain to pull in PAM translations for a case where
linux-pam is installed to non-default prefix.