The branch, v3-2-test has been updated
       via  0bdefa423fbb9469635f8e08c0a3f80a8996b1b6 (commit)
      from  06f33d3725e0d82568c4a3278f59892e3e57a8ee (commit)

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


- Log -----------------------------------------------------------------
commit 0bdefa423fbb9469635f8e08c0a3f80a8996b1b6
Author: Jeremy Allison <[EMAIL PROTECTED]>
Date:   Thu May 1 08:40:30 2008 -0700

    Fix bug #5434 found by Ted Percival <[EMAIL PROTECTED]>.
    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.

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

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 96ab4a8..d1b7355 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

Reply via email to