From 446ebae76d6796b30e4c71ff7190337c28637be6 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 15 Dec 2007 22:28:38 -0800 Subject: [PATCH] More work on bug #5082, use LC_ALL as this takes precedence. Jeremy. --- source/smbd/chgpasswd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index 58b67a58cd8..a277e729bf7 100644 --- a/source/smbd/chgpasswd.c +++ b/source/smbd/chgpasswd.c @@ -520,7 +520,7 @@ bool chgpasswd(const char *name, const struct passwd *pass, if (lp_pam_password_change()) { bool ret; #ifdef HAVE_SETLOCALE - const char *prevlocale = setlocale(LC_MESSAGES, "C"); + const char *prevlocale = setlocale(LC_ALL, "C"); #endif if (as_root) @@ -536,7 +536,7 @@ bool chgpasswd(const char *name, const struct passwd *pass, unbecome_root(); #ifdef HAVE_SETLOCALE - setlocale(LC_MESSAGES, prevlocale); + setlocale(LC_ALL, prevlocale); #endif return ret;