[SCM] Samba Shared Repository - branch v3-0-test updated -
release-3-0-28-133-g81b392b
Volker Lendecke
vl at samba.org
Mon Feb 25 08:54:17 GMT 2008
The branch, v3-0-test has been updated
via 81b392b353b0d4812adc0ee8c767251a5bd738e4 (commit)
from 698f63cc3adc652c20cfd84a0b2eab72076b7e8a (commit)
http://gitweb.samba.org/?samba.git;a=shortlog;h=v3-0-test
- Log -----------------------------------------------------------------
commit 81b392b353b0d4812adc0ee8c767251a5bd738e4
Author: Volker Lendecke <vl at samba.org>
Date: Mon Feb 25 09:51:33 2008 +0100
Fix confusing error message -- bug 5252
Thanks to Walter Franzini
-----------------------------------------------------------------------
Summary of changes:
source/client/mount.cifs.c | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index 3662fb5..4385412 100755
--- a/source/client/mount.cifs.c
+++ b/source/client/mount.cifs.c
@@ -203,8 +203,10 @@ static int open_cred_file(char * file_name)
/* go past equals sign */
temp_val++;
for(length = 0;length<4087;length++) {
- if(temp_val[length] == '\n')
+ if ((temp_val[length] == '\n')
+ || (temp_val[length] == '\0')) {
break;
+ }
}
if(length > 4086) {
printf("mount.cifs failed due to malformed username in credentials file");
@@ -227,8 +229,10 @@ static int open_cred_file(char * file_name)
/* go past equals sign */
temp_val++;
for(length = 0;length<65;length++) {
- if(temp_val[length] == '\n')
+ if ((temp_val[length] == '\n')
+ || (temp_val[length] == '\0')) {
break;
+ }
}
if(length > 64) {
printf("mount.cifs failed: password in credentials file too long\n");
@@ -256,8 +260,10 @@ static int open_cred_file(char * file_name)
if(verboseflag)
printf("\nDomain %s\n",temp_val);
for(length = 0;length<65;length++) {
- if(temp_val[length] == '\n')
- break;
+ if ((temp_val[length] == '\n')
+ || (temp_val[length] == '\0')) {
+ break;
+ }
}
if(length > 64) {
printf("mount.cifs failed: domain in credentials file too long\n");
--
Samba Shared Repository
More information about the samba-cvs
mailing list