Changeset 966 for trunk/client/src/smbwrp.c
- Timestamp:
- Aug 19, 2016, 2:24:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/src/smbwrp.c
r960 r966 26 26 #include "libsmb/clirap.h" 27 27 #include "trans2.h" 28 29 #include "dircache.h" 28 30 #include "smbwrp.h" 29 31 … … 806 808 807 809 // Try to get the listing from cache. 808 if (dircache_list_files(fn, state, &num_finfo)) 810 if (dircache_list_files(pRes->pdc, fn, state->plist, 811 state->mask, (char*) state->fullpath, &num_finfo)) 809 812 return(num_finfo); // Got from cache 810 813 … … 838 841 goto fail; 839 842 840 dircachectx = dircache_write_begin(state, num_finfo); 843 dircachectx = dircache_write_begin(pRes->pdc, state->mask, 844 (char*) state->fullpath, num_finfo); 841 845 842 846 debuglocal(pRes, 4,"list_files: got %d files\n", num_finfo); … … 854 858 fn(cli->dfs_mountpoint, &wrpfinfo, mask, state); 855 859 // Also add the entry to the cache. 856 dircache_write_entry(pRes, dircachectx, &wrpfinfo); 857 } 858 859 dircache_write_end(pRes, dircachectx); 860 dircache_write_entry(pRes->pdc, dircachectx, &wrpfinfo); 861 } 862 863 dircache_write_end(pRes->pdc, dircachectx); 864 860 865 fail: 861 866 TALLOC_FREE(frame); … … 988 993 } 989 994 990 991 #pragma pack(1)992 typedef struct _FEA993 {994 unsigned char fEA; // flags995 unsigned char cbName; // name length not including NULL996 unsigned short cbValue; // value length997 } FEA;998 999 typedef struct _FEALIST1000 {1001 unsigned long cbList; // total bytes of structure including full list1002 FEA list[1]; // variable length FEA structures1003 } FEALIST;1004 #pragma pack()1005 995 1006 996 static int unilistea(Resource *pRes, cli_state * cli, char *fname, void * buffer, unsigned long size)
Note:
See TracChangeset
for help on using the changeset viewer.