diff options
author | Dmitry V. Levin <ldv@strace.io> | 2024-03-31 08:00:00 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-03-31 08:00:00 +0000 |
commit | ce8aa213b03cc12f10d20d82dbf4aa355123e5c5 (patch) | |
tree | be780cf74a6fde2ea977e1cb1acfe5f1ddc10b77 /libpam | |
parent | 78e3988dd377a043c5b6c9a898994be68a8bf6f8 (diff) | |
download | pam-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.c | 2 |
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. |