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

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


- Log -----------------------------------------------------------------
commit 52b64605e8210234118c445e416ad0c7980a730c
Author: Jeremy Allison <[EMAIL PROTECTED]>
Date:   Thu May 1 08:49:18 2008 -0700

    Tidyup to ensure '\n' is treated identically in all
    cases. Karolin please pull for 3.2-stable.
    Jeremy.
    (cherry picked from commit 92b5ff39b17e4d07e78c285991027745ad6e2e13)

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

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 862e3b4..d1c7a69 100644
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -213,6 +213,7 @@ static int open_cred_file(char * file_name)
                                for(length = 0;length<4087;length++) {
                                        if ((temp_val[length] == '\n')
                                            || (temp_val[length] == '\0')) {
+                                               temp_val[length] = '\0';
                                                break;
                                        }
                                }
@@ -332,6 +333,7 @@ static int get_password_from_file(int file_descript, char * 
filename)
                        break;
                } else /* read valid character */ {
                        if((c == 0) || (c == '\n')) {
+                               mountpassword[i] = '\0';
                                break;
                        } else 
                                mountpassword[i] = c;


-- 
Samba Shared Repository

Reply via email to