The branch, v3-3-test has been updated via 41984743d9e89b6568119832c35ee4c0024e43a2 (commit) from 2c41d69bcf6f0897ef9d444a8f167aff1772d562 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log ----------------------------------------------------------------- commit 41984743d9e89b6568119832c35ee4c0024e43a2 Author: Jeremy Allison <[EMAIL PROTECTED]> Date: Thu May 1 08:39:16 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. 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