[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2269-g92b5ff3

Jeremy Allison jra at samba.org
Thu May 1 15:50:02 GMT 2008


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

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


- Log -----------------------------------------------------------------
commit 92b5ff39b17e4d07e78c285991027745ad6e2e13
Author: Jeremy Allison <jra at samba.org>
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.

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

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 d1b7355..c42375b 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


More information about the samba-cvs mailing list