[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-670-g446ebae

Jeremy Allison jra at samba.org
Sun Dec 16 06:39:45 GMT 2007


The branch, v3-2-test has been updated
       via  446ebae76d6796b30e4c71ff7190337c28637be6 (commit)
      from  eb523ba77697346a365589101aac379febecd546 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 446ebae76d6796b30e4c71ff7190337c28637be6
Author: Jeremy Allison <jra at samba.org>
Date:   Sat Dec 15 22:28:38 2007 -0800

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

-----------------------------------------------------------------------

Summary of changes:
 source/smbd/chgpasswd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index 58b67a5..a277e72 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;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list