The Samba-Bugzilla – Attachment 1019 Details for
Bug 2271
files missing in directory listing from smbclient 'dir' command with windows xp server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch I've committed
look (text/plain), 1.36 KB, created by
Jeremy Allison
on 2005-03-08 17:01:42 UTC
(
hide
)
Description:
Patch I've committed
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2005-03-08 17:01:42 UTC
Size:
1.36 KB
patch
obsolete
>Index: libsmb/clilist.c >=================================================================== >--- libsmb/clilist.c (revision 5698) >+++ libsmb/clilist.c (working copy) >@@ -268,24 +268,6 @@ > p = rdata; > > /* we might need the lastname for continuations */ >- if (ff_lastname > 0) { >- switch(info_level) { >- case 260: >- clistr_pull(cli, mask, p+ff_lastname, >- sizeof(mask), >- data_len-ff_lastname, >- STR_TERMINATE); >- break; >- case 1: >- clistr_pull(cli, mask, p+ff_lastname+1, >- sizeof(mask), >- -1, >- STR_TERMINATE); >- break; >- } >- } else { >- pstrcpy(mask,""); >- } > > /* and add them to the dirlist pool */ > tdl = SMB_REALLOC(dirlist,dirlist_len + data_len); >@@ -299,10 +281,18 @@ > > /* put in a length for the last entry, to ensure we can chain entries > into the next packet */ >- for (p2=p,i=0;i<(ff_searchcount-1);i++) >- p2 += interpret_long_filename(cli,info_level,p2,NULL); >+ for (p2=p,i=0;i<(ff_searchcount-1);i++) { >+ p2 += interpret_long_filename(cli,info_level,p2,&finfo); >+ } > SSVAL(p2,0,data_len - PTR_DIFF(p2,p)); > >+ /* we might need the lastname for continuations */ >+ if (ff_lastname > 0) { >+ pstrcpy(mask, finfo.name); >+ } else { >+ pstrcpy(mask,""); >+ } >+ > /* grab the data for later use */ > memcpy(dirlist+dirlist_len,p,data_len); > dirlist_len += data_len;
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 2271
:
950
| 1019 |
1023