1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

More work on bug #5082, use LC_ALL as this takes

precedence.
Jeremy.
This commit is contained in:
Jeremy Allison 2007-12-15 22:28:38 -08:00
parent eb523ba776
commit 446ebae76d

View File

@ -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;