The Samba-Bugzilla – Attachment 644 Details for
Bug 1732
Win9x client cannot browse share if strlen("sharename in unix charset")>12
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
lanman-sharename-limit.diff (text/plain), 1.47 KB, created by
SATOH Fumiyasu
on 2004-09-07 22:25:56 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
SATOH Fumiyasu
Created:
2004-09-07 22:25:56 UTC
Size:
1.47 KB
patch
obsolete
>Index: SAMBA_3_0/source/smbd/lanman.c >=================================================================== >--- SAMBA_3_0/source/smbd/lanman.c (revision 2247) >+++ SAMBA_3_0/source/smbd/lanman.c (working copy) >@@ -1501,10 +1501,12 @@ static BOOL api_RNetShareEnum( connectio > if (!check_share_info(uLevel,str2)) return False; > > data_len = fixed_len = string_len = 0; >- for (i=0;i<count;i++) >+ for (i=0;i<count;i++) { >+ fstring servicename_dos; >+ push_ascii_fstring(servicename_dos, lp_servicename(i)); > if( lp_browseable( i ) > && lp_snum_ok( i ) >- && (strlen( lp_servicename( i ) ) < 13) ) /* Maximum name length. */ >+ && (strlen(servicename_dos) < 13) ) /* Maximum name length. */ > { > total++; > data_len += fill_share_info(conn,i,uLevel,0,&f_len,0,&s_len,0); >@@ -1517,6 +1519,7 @@ static BOOL api_RNetShareEnum( connectio > else > missed = True; > } >+ } > *rdata_len = fixed_len + string_len; > *rdata = REALLOC(*rdata,*rdata_len); > memset(*rdata,0,*rdata_len); >@@ -1527,9 +1530,11 @@ static BOOL api_RNetShareEnum( connectio > s_len = string_len; > for( i = 0; i < count; i++ ) > { >+ fstring servicename_dos; >+ push_ascii_fstring(servicename_dos, lp_servicename(i)); > if( lp_browseable( i ) > && lp_snum_ok( i ) >- && (strlen( lp_servicename( i ) ) < 13) ) >+ && (strlen(servicename_dos) < 13) ) > { > if( fill_share_info( conn,i,uLevel,&p,&f_len,&p2,&s_len,*rdata ) < 0 ) > break;
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 1732
: 644