[SCM] Samba Shared Repository - branch v3-2-stable updated - release-3-2-0pre3-7-ga653181

Karolin Seeger kseeger at samba.org
Mon May 5 07:04:08 GMT 2008


The branch, v3-2-stable has been updated
       via  a6531819e6b9f86620360f0a2e1338aa0cce5605 (commit)
      from  c3c0795f6a7fc80add7b38188893c6e82f721216 (commit)

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


- Log -----------------------------------------------------------------
commit a6531819e6b9f86620360f0a2e1338aa0cce5605
Author: Jeremy Allison <jra at samba.org>
Date:   Thu May 1 08:40:30 2008 -0700

    Fix bug #5434 found by Ted Percival <ted at midg3t.net>.
    Introduced by me in the strlcpy cleanup. Ensure the
    loaded password doesn't contain the '\n' at the end.
    Karolin - please pull for 3.2 stable !
    Jeremy.
    (cherry picked from commit 0bdefa423fbb9469635f8e08c0a3f80a8996b1b6)

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

Summary of changes:
 source/client/mount.cifs.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index 1b67a5e..862e3b4 100644
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -236,6 +236,7 @@ static int open_cred_file(char * file_name)
 				for(length = 0;length<MOUNT_PASSWD_SIZE+1;length++) {
 					if ((temp_val[length] == '\n')
 					    || (temp_val[length] == '\0')) {
+						temp_val[length] = '\0';
 						break;
 					}
 				}
@@ -264,6 +265,7 @@ static int open_cred_file(char * file_name)
                                 for(length = 0;length<DOMAIN_SIZE+1;length++) {
 					if ((temp_val[length] == '\n')
 					    || (temp_val[length] == '\0')) {
+						temp_val[length] = '\0';
 						break;
 					}
                                 }


-- 
Samba Shared Repository


More information about the samba-cvs mailing list