summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-15 22:28:38 -0800
committerJeremy Allison <jra@samba.org>2007-12-15 22:28:38 -0800
commitd76b086cc9edf0b9e0b3ac759d0b66e0515d62e5 (patch)
tree8fd99db95d5a6702211a00e8eb3005f93f1d8d79 /source3
parent2e07c2ade89f4ff281c61f74cb88e09990cf5f46 (diff)
downloadsamba-d76b086cc9edf0b9e0b3ac759d0b66e0515d62e5.tar.gz
samba-d76b086cc9edf0b9e0b3ac759d0b66e0515d62e5.tar.bz2
samba-d76b086cc9edf0b9e0b3ac759d0b66e0515d62e5.zip
More work on bug #5082, use LC_ALL as this takes
precedence. Jeremy. (This used to be commit 446ebae76d6796b30e4c71ff7190337c28637be6)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/chgpasswd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 58b67a58cd..a277e729bf 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/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;