The Samba-Bugzilla – Attachment 2200 Details for
Bug 4176
can't mount anymore with 2.6.18
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
use null domain name if user does not specify (instead of using CIFS_LINUX_DOM)
null-domain-default.patch (text/plain), 1.27 KB, created by
Steve French
on 2006-11-07 23:12:57 UTC
(
hide
)
Description:
use null domain name if user does not specify (instead of using CIFS_LINUX_DOM)
Filename:
MIME Type:
Creator:
Steve French
Created:
2006-11-07 23:12:57 UTC
Size:
1.27 KB
patch
obsolete
>diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c >index a8a0835..8861234 100644 >--- a/fs/cifs/sess.c >+++ b/fs/cifs/sess.c >@@ -98,10 +98,14 @@ static void unicode_ssetup_strings(char > bcc_ptr += 2 * bytes_ret; > bcc_ptr += 2; /* account for null termination */ > /* copy domain */ >- if(ses->domainName == NULL) >- bytes_ret = cifs_strtoUCS((__le16 *) bcc_ptr, >- "CIFS_LINUX_DOM", 32, nls_cp); >- else >+ if(ses->domainName == NULL) { >+ /* Sending null domain is more likely to work >+ than sending a bogus domain */ >+/* bytes_ret = cifs_strtoUCS((__le16 *) bcc_ptr, >+ "CIFS_LINUX_DOM", 32, nls_cp);*/ >+ *bcc_ptr = 0; >+ *(bcc_ptr+1) = 0; >+ } else > bytes_ret = cifs_strtoUCS((__le16 *) bcc_ptr, ses->domainName, > 256, nls_cp); > bcc_ptr += 2 * bytes_ret; >@@ -144,13 +148,11 @@ static void ascii_ssetup_strings(char ** > > /* copy domain */ > >- if(ses->domainName == NULL) { >- strcpy(bcc_ptr, "CIFS_LINUX_DOM"); >- bcc_ptr += 14; /* strlen(CIFS_LINUX_DOM) */ >- } else { >+ if(ses->domainName != NULL) { > strncpy(bcc_ptr, ses->domainName, 256); > bcc_ptr += strnlen(ses->domainName, 256); >- } >+ } /* else we will send a null domain name >+ so the server will default to its own domain */ > *bcc_ptr = 0; > bcc_ptr++; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4176
: 2200