The branch, v3-3-test has been updated
via 818fbc9889af8c9fb6e7978e8ed2269a78f14404 (commit)
from 41984743d9e89b6568119832c35ee4c0024e43a2 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit 818fbc9889af8c9fb6e7978e8ed2269a78f14404
Author: Jeremy Allison <[EMAIL PROTECTED]>
Date: Thu May 1 08:48:52 2008 -0700
Tidyup to ensure '\n' is treated identically in all
cases.
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